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 / dbEntry() / dbGetEntry() Crash Bug

Author
Message
Gunslinger
16
Years of Service
User Offline
Joined: 29th May 2007
Location:
Posted: 22nd Oct 2013 21:30
Hello,
could somebody try out the following?

- Start your Application
- Dont press any buttons
- Call dbEntry() / dbGetEntry() with the button press of "^"

It should crash because of an invalid pointer.
Could somebody try that?

I'm opening my Game (/Engine) Console with that button, and if i press it directly after game start without pressing any others buttons before, it's crashing.
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 23rd Oct 2013 03:10
Can you debug it to see why / where it crashes?
Sadly I have no "^" key (I have to hold shift and press another key for that) so can't test it myself.


"Why do programmers get Halloween and Christmas mixed up?"
Gunslinger
16
Years of Service
User Offline
Joined: 29th May 2007
Location:
Posted: 24th Oct 2013 04:45
nope because its a gdk lib function.
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 24th Oct 2013 10:57
It should still show you the exception type and from what function it fails with some stepping.
Also you can download the debuggable GDK source from here.


"Why do programmers get Halloween and Christmas mixed up?"
BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 1st Nov 2013 02:56
Ran into this myself. Looking into it, dbEntry() seems to return a NULL pointer (probably when the entry buffer is empty), which can't be interpreted as a string (since, you know, it isn't one).

Here's my workaround:



Hope this helps!

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose

Login to post a reply

Server time is: 2024-03-28 17:55:49
Your offset time is: 2024-03-28 17:55:49