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.

Dark GDK / DarkGDK call overwriting local variable

Author
Message
WBB
15
Years of Service
User Offline
Joined: 28th Aug 2009
Location:
Posted: 13th Nov 2009 21:51
It's definitely happening: the Dark GDK call dbLoadImage is *changing* the value of a variable in the main program. Has anyone else noticed this -- or found a fix?

Putting a dummy int variable at the front of the main program protects the variable; also using a different bitmap prevents the problem.

TIA

Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 14th Nov 2009 01:23
I've also had the same thing happen to me before, and I fixed it by putting a dummy variable before the one it was changing, just like you said.

Your_Health = (My_Mood == HAPPY) ? 100 : NULL;
Mireben
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 14th Nov 2009 12:18
Wow. Unbelievable, but I can confirm it too. It seems that the variable changes when the file to be loaded is not found. If the file is found, the value does not change on my machine. This is definitely a bug report.

Login to post a reply

Server time is: 2024-11-20 09:30:18
Your offset time is: 2024-11-20 09:30:18