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 / Problem with dbObjectExist

Author
Message
Syncaidius
19
Years of Service
User Offline
Joined: 22nd Mar 2005
Location: United Kingdom
Posted: 24th Apr 2010 00:46 Edited at: 24th Apr 2010 00:47
Hi, I'm having trouble with the dbObjectExist function. The help files say "This command will return a one if the specified 3D object exists, otherwise zero will be returned." exactly the same as the DBP version does which I'm used to for the past 4 years.

However, its returning a huge random number every time its called, for reasons I don't know about. If someone could enlighten me as to why this happens I'd be greatful, thanks.



Attachments

Login to view attachments
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 24th Apr 2010 01:13
Could you put your break-point on the next line(67), putting the break there wont give you the returned value of dbObjectExist().

Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 24th Apr 2010 01:31
The yellow arrow points to the line that is going to be executed next, so line 66 has not been executed yet, and therefore 'test' has not been initialized yet, so it's a random number.

"A computer once beat me at chess, but it was no match for me at kick boxing."
Emo Philips
Syncaidius
19
Years of Service
User Offline
Joined: 22nd Mar 2005
Location: United Kingdom
Posted: 24th Apr 2010 12:02
Ah thanks, works fine. It's just my newness to GDK and C++ messing me about.

Login to post a reply

Server time is: 2024-11-20 01:42:23
Your offset time is: 2024-11-20 01:42:23