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 / Weird instruction limit!

Author
Message
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 29th Nov 2002 15:03
I just turn into an instruction limit in DBP. I'm running patch 3 btw. When one of my files reached 771 lines the exe started to chrash everytime I tried to run it. No matter what instruction I removed it worked so it's not a bug in my code. But if I remove a blank row it still crashes. I solved it by moving the whole gosub I was working on to another file and it works perfectly. I don't know how many lines of instructions I got.

I'm mailing this to Lee...
DigAw.com
Game in developement: The Magic Land
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 29th Nov 2002 15:16
Hmm, my webmail wont let me in... I got my webhotel workin on it.

DigAw.com
Game in developement: The Magic Land
ICERGB
21
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 29th Nov 2002 15:20
Now that would suck...
for everyone, including me...

I feel sorry for Lee,
but he is my hero!

But maybe it is just a matter of glueing up the glitches.

I would guess if you are right that patch 4 would be out very soon!
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 29th Nov 2002 15:40
Patch 4 is promised before xmas.

DigAw.com
Game in developement: The Magic Land
Viktor
21
Years of Service
User Offline
Joined: 7th Oct 2002
Location: Austria
Posted: 29th Nov 2002 15:58
My program has at this moment over 3500 lines of non-structured multiple instruction-Lines and it does not crash (I do not count the mess with SYNC bug and Math bug), so the problem must be somewhere else.

-----------------------------------------------------
PC: Amd Athlon 1200/512 Mb SDRam/GeForce2MX Dual Display Video/Win2000, 19" Monitor
ZX: ZX Spectrum 128+ Customized version.
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 29th Nov 2002 15:59
Do you have multiple files or just one big file?

DigAw.com
Game in developement: The Magic Land
Viktor
21
Years of Service
User Offline
Joined: 7th Oct 2002
Location: Austria
Posted: 29th Nov 2002 20:20
I have one big file, because I do not like to have multiple files... Yes, really over 3500 Lines in one file, and it works!

-----------------------------------------------------
PC: Amd Athlon 1200/512 Mb SDRam/GeForce2MX Dual Display Video/Win2000, 19" Monitor
ZX: ZX Spectrum 128+ Customized version.
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 29th Nov 2002 22:58
I don't even have a project that's 3500 lines long =) Maybe it's a limit for included files.

DigAw.com
Game in developement: The Magic Land
Viktor
21
Years of Service
User Offline
Joined: 7th Oct 2002
Location: Austria
Posted: 30th Nov 2002 02:44
I´m sure, there is no limitation, even DB 1.xx had none (my project had >5000 lines, primary because I did not optimized a lot of the code, which I do now in the new verion). Probaly there is somethink different that causes the problem.
Look, my project locks up at start if I use Patch 2, and I was not able to find the reason, but then I found out that the memory allocation was messed up, so all my array initializations at the start caused a lockup.

PC: AMD 1200/512 Mb SDR/GF2MX Dual Display/Win2000, 19" Monitor
ZX: Spectrum 128+ Customized version.
Current Project: BMP2SCR Pro (with LDIR)
xtom
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Ireland
Posted: 30th Nov 2002 03:02
My game is about 6500 lines (one dba file) and it's running grand, except for the loading levels bit which I haven't fixed yet. I remember Guy saying he compiled a program with a few hundred thousand lines so I don't think there's much of a limit.
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 30th Nov 2002 14:19
Both of you are using 1 file, I use 3 at the moment (and I don't even have 1500 lines) The weird thing is that removing any one single line and it worked, now that I put the code in another of the 3 files it worked.

DigAw.com
Game in developement: The Magic Land
Viktor
21
Years of Service
User Offline
Joined: 7th Oct 2002
Location: Austria
Posted: 30th Nov 2002 17:29
So why do you use multiple files? It has maybe some advantages, and disadvantages (Like editing three files at once, but DBP is still a bit unstable, so I suggest, you can join the code into a big one. DBP is still in a very early stage, so this could happen.

PC: AMD 1200/512 Mb SDR/GF2MX Dual Display/Win2000, 19" Monitor
ZX: Spectrum 128+ Customized version.
Current Project: BMP2SCR Pro (with LDIR)
David T
Retired Moderator
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 1st Dec 2002 12:13
I hope there is not limit of include files, as I have 17!

I love Star Trek.
Especially the Episodes with Starships in.
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 1st Dec 2002 13:28
Viktor:
Well at the moment I have split the files like this:
1. Shell: this file mostly call gosubs forom the other files so that the whole program get's extremly visible.
2. Engine: This file contains everything that is used by both editor and game and includes matrix handling, data loading etc. This is very handy as they both use the same file I don't have to make changes in 2 files.
3. Include: This file contains extra gosubs that is not the same for editor and game like controlls that are even called by the same label.

It's the include file for the editor that is too long.

DigAw.com
Game in developement: The Magic Land

Login to post a reply

Server time is: 2024-05-03 20:56:20
Your offset time is: 2024-05-03 20:56:20