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 Professional Discussion / Runtime error - array out of bounds at line 490, but where?

Author
Message
Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 13th Aug 2012 22:46
I dont get this error myself but my cousin do at random times when he runs the current code. He gets a line number allright but I have no clue as to where this line is located. I have many included documents in my code so my main document is but a few lines. How do I find this line?

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 13th Aug 2012 22:48 Edited at: 13th Aug 2012 22:50
since u didnt gived us your source code to look at,
im still 100% sure is that dbp code is very stable without any bugs.
so its only your code the one what bugs up. check again at this line.
or at least post us a code.

the line code goes like this:
if its line 490, start counting from your Main Source code, up to next sub code file untill u hit 490

wich means, if u have 20 lines in main source, then the 490 line is your 470 line in your 2nd source file.

Advanced Updater for your games!
Aaron Miller
20
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 13th Aug 2012 22:53 Edited at: 13th Aug 2012 22:54
Check "C:\Users\your-name\AppData\Local\Temp\Dark Basic Professional TEMP\" for a file called "FullSourceDump.dba." Open that file and go directly to the line number.

Cheers,
Aaron

Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 13th Aug 2012 23:04 Edited at: 13th Aug 2012 23:13
@Sergey K: I have not manually included the documents in my code (#include source.dba) but used the editors add source code file interface so I have no clue in what order they are added to the full source code :-( I used to just add up my included files line numbers and do it that way.

@Aaron Miller: Thank you, now I at least now what line might be bugging everything up

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 14th Aug 2012 23:09
DB didn't open the included file and jump to the line itself?

"You're not going crazy. You're going sane in a crazy world!" ~Tick
Aaron Miller
20
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 15th Aug 2012 05:19
Quote: "DB didn't open the included file and jump to the line itself?"

LOL. DBP has never handled line numbers correctly.

Cheers,
Aaron

Login to post a reply

Server time is: 2026-07-21 20:34:53
Your offset time is: 2026-07-21 20:34:53