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 / Program will compile, but won't run

Author
Message
Maindric
16
Years of Service
User Offline
Joined: 22nd Jul 2009
Location:
Posted: 25th Jun 2011 06:33
I know titles like that are frowned upon, but I do not know how to describe the error I am getting...

When I compile my code, and try to run it, it compiles, the screen goes black, then a window pops up saying "Dark Strat Stopped Working".

I have commented out some code and compiled, same error.

I tried step by step debug mode, and it goes through the code fine there, any other method, and it fails...

I do not know what to try next... Help would be most appreciated...

.Zip attached, it contains all the files. The files are from free sources (Dark Matter, etc) or made by me.

I will continue working on the problem, but I do not know where to start. I tried to compile and run other programs just fine. I was in the middle of cleaning my code and commenting it all when this error occurred.

Hodgey
16
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 25th Jun 2011 07:19 Edited at: 25th Jun 2011 07:22
Try making mainhex$ a global, that got pass the "Dark Strat has stopped working" problem but then I hit an "object illegal at line whatever" which I will let you sort out.

Let me know if that doesn't work because I went fiddling with other bits of code.

Oh yeah, about the title, I think that yours is perfectly acceptable, you noted your problem. People get annoyed when the title is meaningless like "Plz help me" which doesn't give any indication of what the problem is.

A clever person solves a problem, a wise person avoids it - Albert Einstein
Maindric
16
Years of Service
User Offline
Joined: 22nd Jul 2009
Location:
Posted: 25th Jun 2011 07:30
I know about the title, and thanks for pointing that out, I'll try it out in the morning. Much appreciated for the help!

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 25th Jun 2011 17:14
The following changes allowed it to run on my laptop:



and



The last two may be what you need.
Maindric
16
Years of Service
User Offline
Joined: 22nd Jul 2009
Location:
Posted: 25th Jun 2011 19:19
Sweet, thanks GG and Hodgey, I looked right over that.

I know what to look out for next time then.

Login to post a reply

Server time is: 2026-07-11 10:26:21
Your offset time is: 2026-07-11 10:26:21