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 / Memory Access Violation?

Author
Message
AzGamer
15
Years of Service
User Offline
Joined: 5th Dec 2008
Location:
Posted: 18th Jun 2010 03:49
Hey everyone! I seem to be getting this weird error whenever i compile and debug.



Here is my actual source code:


I setup a breakpoint on the line " dbUpdateTerrain ( ); ", and it works all the way through. So i have a feeling it has to do with something afterwords, just can't figure out what it is.

Any ideas what i did wrong?
AzGamer
15
Years of Service
User Offline
Joined: 5th Dec 2008
Location:
Posted: 18th Jun 2010 05:43
I narrowd it down to the dbUpdateTerrain() function. I don't know why but it is causing the error.
JTK
14
Years of Service
User Offline
Joined: 10th Feb 2010
Location:
Posted: 18th Jun 2010 06:05 Edited at: 18th Jun 2010 06:22
Try this:



The first pass is trying to call dbUpdateTerrain() when there wasn't a dbBuildTerrain() called yet...

Hope this helps,

JTK

Edit: Oops! I forgot the *if* check before calling dbUpdateTerrain()...
AzGamer
15
Years of Service
User Offline
Joined: 5th Dec 2008
Location:
Posted: 18th Jun 2010 06:59
Thanks! I'll get to work on testing it. I'll let you know how it turns out!
AzGamer
15
Years of Service
User Offline
Joined: 5th Dec 2008
Location:
Posted: 18th Jun 2010 07:04
Hey it worked! Thanks JTK!

Login to post a reply

Server time is: 2024-07-04 10:35:12
Your offset time is: 2024-07-04 10:35:12