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 / No executable being produced.

Author
Message
Scene Commander
Support Manager
18
Years of Service
User Offline
Joined: 3rd May 2008
Location:
Posted: 13th Jul 2011 12:30 Edited at: 13th Jul 2011 12:40
Hi,

As it says in the title. I'm working on a very large project of over 63400+ lines and suddenly my project has stopped producing a .exe. Previous, smaller back ups of the project at around 62900+ are still creating a .exe on compile.

Can anyone shed any light on this issue please? Is my project just too big?

i5 650 3.20ghz, 4gb ram, windows 7, 64bit

http://jimjamsgames.yolasite.com
Gencheff
16
Years of Service
User Offline
Joined: 12th Jun 2010
Location: UK by way of USSR
Posted: 13th Jul 2011 12:41 Edited at: 13th Jul 2011 12:42
This may be a wild guess on my behalf,however I think I read somewhere that there is a limitation and if you go over it,you can not create your project.

I think hockeykid was talking about this in the Project Blue thread , when people were requesting more features.Seeing that your previous build was under 63k and the new one over,maybe that's where the line is drawn ?

Samotnijat vylk nasred gorata.
-3D,2D Artist,Animator,Web developer and Programmer.
DevilLiger
22
Years of Service
User Offline
Joined: 21st Nov 2003
Location: Fresno,CA,USA
Posted: 13th Jul 2011 13:55
that better not be the limit other wise i will be fraustrated about DB Pro. I might have to migrate to DGDK if it's true.

DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 13th Jul 2011 18:08
I haven't encountered a limit myself, although I don't think anything I have done has gone much beyond 30000 lines at max, so it could be possible. Does it come up with an error message when you try to compile or just sit there?

If it is a size limitation, perhaps you could get round it by taking some parts of your program and putting into a separate file, and include it at the start of the main as a function? Just a thought, it may not be the size causing it anyway of course.

Also, it may be worth adding some fake lines to your old working program, to test if it is the size, or something to do with your new code. Duplicate a function or label to get the code size up. Obviously changing the label or function name so it doesn't affect your existing ones.

Anyways, just a few ideas, I think you will have to play about yourself to find the answer, unless others have hit the same problem in the past. I'm pretty sure FPS creator has a large amount of code to it, but can't remember how many lines as such. Has anyone else wrote something as big or bigger without problems?

http://s6.bitefight.org/c.php?uid=103081
Scene Commander
Support Manager
18
Years of Service
User Offline
Joined: 3rd May 2008
Location:
Posted: 15th Jul 2011 10:58
Thanks for responses all.

Quote: "Does it come up with an error message when you try to compile or just sit there?"


Neither, it finishes the compile process and then there is just no .exe.

I've still not been able to put my finger on the cause. It now seems to be if the executible exceeds 18mb but I'm still not sure.

I'm going to try breaking to code up into seperate, smaller includes as DVader suggested, and I'll let you know if that helps in anyway.

http://jimjamsgames.yolasite.com
JackDawson
14
Years of Service
User Offline
Joined: 12th Jul 2011
Location:
Posted: 15th Jul 2011 14:57
I have a question, i'm also on Windows 7 and I get this error with only a few lines or code sometimes.. What I found out is its about permissions under Windows 7. Where you save the target files is important if your not running under administrator mode. I literally had to go into the properties of my DBP icon and in the compatibility section, I checked the box that says Administrator mode. Now it compiles successfully every time.

Hope this helps.

"If you can sing that high, you must have been kicked in the crotch a little too hard."
Scene Commander
Support Manager
18
Years of Service
User Offline
Joined: 3rd May 2008
Location:
Posted: 25th Jul 2011 13:34
Just to update this.

After a lot of experimenting with various builds, I'm now 99% sure that DBP fails to produce a final .exe when the final .exe is greater than 18,000kb. I obviously can't confirm this for sure as there is no .exe but I have been able to produce one of 17,990k succesfully. Any additions after that point fail to build.

I've yet to try Dvader's plan of splitting the code and will try that next and let you know.

http://jimjamsgames.yolasite.com
JackDawson
14
Years of Service
User Offline
Joined: 12th Jul 2011
Location:
Posted: 25th Jul 2011 16:32
Well in one way, I guess it would explain why not many people use DBP for larger programs. I always wondered about that. Because it would mean that you would have to literally have the media and the DLLs outside of the EXE itself. Makes sense since most IDEs do this anyhow. I wonder if this was done because of limits of windows perhaps ?

"If you can sing that high, you must have been kicked in the crotch a little too hard."
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 25th Jul 2011 16:46
Another thought that springs to mind is your version of DB. You need the latest update if using windows 7 with service pack 1. I have seen this problem on another computer of mine with any sized program when using an older version of DB, which worked fine a few days before..Updating DB fixed it.

http://s6.bitefight.org/c.php?uid=103081
JackDawson
14
Years of Service
User Offline
Joined: 12th Jul 2011
Location:
Posted: 25th Jul 2011 16:50
Quote: "Another thought that springs to mind is your version of DB. You need the latest update if using windows 7 with service pack 1. I have seen this problem on another computer of mine with any sized program when using an older version of DB, which worked fine a few days before..Updating DB fixed it."




Although, I'm personally on the newest version, and have been for a while now, does this mean that the limits were addressed already ?

"If you can sing that high, you must have been kicked in the crotch a little too hard."
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 25th Jul 2011 17:11
If by limits you mean the program length, no I can't confirm that, just that the machine had worked fine a few days before, then suddenly stopped working with any code I tried. It just said compiling exe and sat there. Running the exe manually afterwards gave a error saying something like parameter incorrect. Updating to version 1.0761 fixed it. I can only guess windows updated itself and caused DB to have this problem.

It could be unrelated to this, but as I had seen it, and thought how similar it is, I thought I'd throw the info into the pot.

http://s6.bitefight.org/c.php?uid=103081
JackDawson
14
Years of Service
User Offline
Joined: 12th Jul 2011
Location:
Posted: 25th Jul 2011 17:14 Edited at: 25th Jul 2011 17:14
Ok so now your saying there is no 18Meg limit as Scene Commander is suggesting ?

"If you can sing that high, you must have been kicked in the crotch a little too hard."
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 25th Jul 2011 18:01
Some people have compiled their programs over 300Mg. There may be a limit or something with the compiler about the text file size, but I am not sure. I usually have my projects split up into anything from 10 source files upwards and beyond 50. The only way around your problem is to split your code files up. Even some of my source files might just have 3 to 5 lines in them but I know exactly where they are when needed.

Warning! May contain Nuts!
Scene Commander
Support Manager
18
Years of Service
User Offline
Joined: 3rd May 2008
Location:
Posted: 25th Jul 2011 19:59
Thanks for comments all.

@WLGfx - I haven't tried splitting my project up, which is to be my next step, it sounds as this may solve my issue. I'll try it out over the next couple of days and let everyone know the results.

http://jimjamsgames.yolasite.com
JackDawson
14
Years of Service
User Offline
Joined: 12th Jul 2011
Location:
Posted: 25th Jul 2011 20:03
Yea, this was a thread I was curious about.. I have not yet made it to the 65K line limits yet. but I am getting close and it had me worried.. so I'll try out WLGfx's idea and see how that goes. Thanks for this thread.

"If you can sing that high, you must have been kicked in the crotch a little too hard."
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 25th Jul 2011 20:47
In the built in IDE that comes with DBPro you don't even need to use the #include, DBPro does that for you when you add files to your project.

It does make it much easier to separate functions, etc into separate files and the speed of computers these days doesn't make much difference during compile time.

My biggest project had just under 200 source files, okay in the end I had to put them into separate folders but that was years ago, but at least while your coding you can find a particular function, list of constants, etc...

I've never come across any file size limits yet.

Warning! May contain Nuts!

Login to post a reply

Server time is: 2026-07-10 19:07:11
Your offset time is: 2026-07-10 19:07:11