Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / I've run into a snag! Help me kill it!!! :)

Author
Message
SpellSword
17
Years of Service
User Offline
Joined: 25th Oct 2002
Location: Cyberspace
Posted: 29th Oct 2002 04:05
"Ack it's the dreaded Snag! Bane of all programmers."

Ok, Here's what I'm trying to do, I'm loading all
the images I'm going to need into the memory, (Or where ever
it is they go)
I've done this before with out any
problems, but for some reason I'm getting the following
message:
"Runtime error at line 57, Bit map to small to get image"

Line 57 is: GET IMAGE 2,0,0,16,40 (I think)

Can any one help?
I've used this method before and it worked so I have no
idea whats wrong with my code.



I'm working with Dark Basic (V113)
------------------------------------------
When I dream, I carry a sword in one hand,
and a gun in the other...
bitJericho
17
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 29th Oct 2002 09:55
it sounds to me like the bitmap is smaller then the get image area.... if that makes sense.... i suggest trimming down the get image x2 and y2.... or you could just use the LOAD IMAGE command, happy coding

J2D
SpellSword
17
Years of Service
User Offline
Joined: 25th Oct 2002
Location: Cyberspace
Posted: 29th Oct 2002 19:11
Thanks

I'd forgotten about 'Load Image',
This should be much easyer now

------------------------------------------
When I dream, I carry a sword in one hand,
and a gun in the other...
Shock
AGK Developer
17
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 29th Oct 2002 21:19
also bare in mind that programming languages sometimes give you the wrong line.

For example, the above error is line 57, but if the error was in end of line 56 it might say the error is 57.

This is really annoying when it says the error is about 5 lines after your program ends

www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...
SpellSword
17
Years of Service
User Offline
Joined: 25th Oct 2002
Location: Cyberspace
Posted: 29th Oct 2002 22:16
Ack! Thanks for the information ShockForge,
thats going to help me pin-point so of the
mistakes I've been making

------------------------------------------
When I dream, I carry a sword in one hand,
and a gun in the other...
SpellSword
17
Years of Service
User Offline
Joined: 25th Oct 2002
Location: Cyberspace
Posted: 29th Oct 2002 22:42
It makes so much sence now!
(I've fixed some other projects that I was working on,
thanks for the help! )

------------------------------------------
When I dream, I carry a sword in one hand,
and a gun in the other...
rapscaLLion
17
Years of Service
User Offline
Joined: 29th Aug 2002
Location: Canada
Posted: 29th Oct 2002 23:54
Sometimes DB returns the line of the closest sync as being the one with the error, when really it could be any number of lines between the last sync and the current sync... grr

Alex Wanuch
aka rapscaLLion
Get the DB Weekly Newsletter at www.dbwn.cjb.net
SpellSword
17
Years of Service
User Offline
Joined: 25th Oct 2002
Location: Cyberspace
Posted: 30th Oct 2002 04:34
Thanks for the warning, I've just started using sync for
some of my projects and with out that knowledge I'd have
been hunting for the errors in my code until the end of
time!

------------------------------------------
When I dream, I carry a sword in one hand,
and a gun in the other...

Login to post a reply

Server time is: 2020-08-13 18:31:33
Your offset time is: 2020-08-13 18:31:33