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 / Screen goes crazy upon exit

Author
Message
No Time To Code
15
Years of Service
User Offline
Joined: 22nd Dec 2008
Location:
Posted: 29th Dec 2008 17:47
I'm wondering if anyone else has had this problem and may have a solution. Occasionally when I hit Esc and F12 to exit the program I was running, the monitor goes haywire. The screen is so garbled I can't make out anything and have to reboot the PC. I've tried the things suggested by tech support such as install 1.21 and update drivers for video card. I'm using DarkEdit (I don't use the DB IDE so I don't know if the problem would occur if I did).
Any help would be appriciated. It really kills the fun of programming if I have to hold my breath every time I exit the program.

NVidia MX400 32MB video card
Windows XP SP3
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 30th Dec 2008 00:30
You could try an "unsupported" command at your own risk. Place it at the top of your porgram:

LOCK CLI

Enjoy your day.
Caleb1994
15
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 30th Dec 2008 01:18
what do you mean "unsupported"? what does thatdo
No Time To Code
15
Years of Service
User Offline
Joined: 22nd Dec 2008
Location:
Posted: 30th Dec 2008 01:22
What does it do?
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 30th Dec 2008 03:06
By unsupported I mean not officially listed. I can't remember where I learned it but I have it written down in my DarkBASIC user manual. It prevents the CLI from initiating after your program reaches an END statment, BREAK statement or when you press ESC or F12. It seems to make the interpretor behave much like when you run an exe that was created with DB.

I've used it many times without problems. But I don't think it is officially released as a command so it's usage may be risky.

Enjoy your day.
No Time To Code
15
Years of Service
User Offline
Joined: 22nd Dec 2008
Location:
Posted: 30th Dec 2008 03:43
It seems like it's worth the risk since the alternative is having to reboot when this problem occurs. Does it go right at the top of the program or at the top of the main loop?
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 30th Dec 2008 20:11 Edited at: 30th Dec 2008 20:13
put it at the top of the entire program

Enjoy your day.
No Time To Code
15
Years of Service
User Offline
Joined: 22nd Dec 2008
Location:
Posted: 31st Dec 2008 01:54
Thanks for the suggestion, I'll give it a shot!

Login to post a reply

Server time is: 2024-05-03 17:43:16
Your offset time is: 2024-05-03 17:43:16