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 / EXE problems

Author
Message
the spratster
20
Years of Service
User Offline
Joined: 19th Apr 2005
Location:
Posted: 10th Feb 2007 15:00
When i run my program in Darkedit, it works fine, but when i save it as a stand alone exectueable its not the same. for instance it writes two of the same word next to each other(one bigger than the other) when it shouldnt. or the screen flashes when using 2d stuff and the sync command.

whats wrong with it?
heartbone
22
Years of Service
User Offline
Joined: 9th Nov 2002
Location:
Posted: 10th Feb 2007 15:56
Your program is executing a text attribute modification (font or size) before the system finishes creating the text generated by a previous command.

Once you figure out which command is executing too fast, place a Wait 2 just before that Set Text command.

I'm unique, just like everybody else.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 11th Feb 2007 02:29
I use the Sync command rather than Wait, but heartbone is right - it's a speed problem and the result is exactly the same.

TDK_Man

heartbone
22
Years of Service
User Offline
Joined: 9th Nov 2002
Location:
Posted: 14th Feb 2007 04:33
Not quite the same, honorable moderator sir.

Sync updates the screen.
Usually I don't want that update to happen until I've finished building the screen.

I'm unique, just like everybody else.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 14th Feb 2007 04:58
You are right, it's not the same, but the time it takes to do a sync results in solving the text flicker problem.

Having said that, I'm talking about when I was creating a screen of different sized lines of text - so the fact that I used Sync as a delay didn't affect anything else.

Admittedly there will probably be times where you don't want to update the screen - in which case Wait is the way to go.

TDK_Man

Login to post a reply

Server time is: 2025-05-26 05:57:23
Your offset time is: 2025-05-26 05:57:23