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 2.0] 2 new errors

Author
Message
haliop
User Banned
Posted: 31st Jul 2012 15:38 Edited at: 31st Jul 2012 15:39
first.

dbRollObjectLeft(id,float), this will sometimes crush the game and point the debugger at dbSync().

second

dbPickObject(x,y,start,end) will sometiems crush and point at dgdk-3d.cpp at


i have removed dbRollObjectLeft completly from my game and it runs smoothly only that sometiems it will crush on dbPickObject which happens rarely.

ty.

EDIT:
sorry its dbTurnObjectLeft not roll.



[URL] http://forum.thegamecreators.com/?m=forum_view&t=198467&b=22 [/URL]
Olby
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 31st Jul 2012 15:57
Are you capturing errors using the dbSetRuntimeErrorCallback functionality ?


Intel Core2Duo 2.2GHZ, 2GB, GeForce 8600M GT 1280MB, Windows Vista Ultimate SP2, PureBasic 4.61 + DarkGDK 2.0
haliop
User Banned
Posted: 31st Jul 2012 16:25
how do i use this command ?

and apperntly dbTurnObjectLeft is ok
there is a new problem which is a big issue!

dbIsObject(id) will sometimes not work correctly



[URL] http://forum.thegamecreators.com/?m=forum_view&t=198467&b=22 [/URL]
Olby
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 31st Jul 2012 17:50 Edited at: 31st Jul 2012 17:52
I can almost guarantee that most of the issues you're experiencing are due to programming errors.

You'll need to create a function that will run for every error. The header should look like this:
Quote: "void __cdecl runtimeCallback(int errorID, void* runtimeParam)"


In this function you can do something like this:
Quote: "MessageBox(0, dbGetErrorString(runtimeParam).c_str(), "Custom Error",
MB_OK);"


Use dbSetRuntimeErrorCallback() to point to your runtime error trapping function (described above).

Now every time you perform an illegal action and GDK encounters an error you should get a message box describing the error. Otherwise instead of crashing you game continues and random unpredictable things can happen. Your best solution is to terminate the game after an error.

This example here shows you how to retrieve information about most recent error:



Intel Core2Duo 2.2GHZ, 2GB, GeForce 8600M GT 1280MB, Windows Vista Ultimate SP2, PureBasic 4.61 + DarkGDK 2.0
haliop
User Banned
Posted: 1st Aug 2012 02:51
ok i'll start using this command see whats going on.



[URL] http://forum.thegamecreators.com/?m=forum_view&t=198467&b=22 [/URL]

Login to post a reply

Server time is: 2024-03-28 18:58:21
Your offset time is: 2024-03-28 18:58:21