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 / Debugging Help

Author
Message
Gravtiy17
15
Years of Service
User Offline
Joined: 19th Jun 2009
Location:
Posted: 19th Jun 2009 18:53
Hello, I'm new to Dark GDK. When I try to compile the standard program I get a message saying:

As you can see it's the simple program that the GDK wizard makes for you from the name. I know it's not C++ itself because when I compile a "Hello World" application It compiles just fine. Maybe it is just a DirectX problem? Anyone who can help me out I would be grateful too, and I will give more detail if needed. Please help.

- Ben
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 19th Jun 2009 20:02
Yeah, we're going to need to see some code to know exactly what the problem is. It could be that you are going outside the bounds of an array or it could be a string problem, or something else.

Press F5 in vc++ express to debug (if it has the feature) and it should tell you the line that is throwing the exception.

Your_Health = (My_Mood == HAPPY) ? 100 : NULL;
Gravtiy17
15
Years of Service
User Offline
Joined: 19th Jun 2009
Location:
Posted: 19th Jun 2009 20:58
Here's the code:

It's just the code you get when you click the wizard...
ScapeSta
15
Years of Service
User Offline
Joined: 28th May 2009
Location:
Posted: 20th Jun 2009 03:30
Do you think, because you stated "access violation", that one of the files needed for it is blocked firewalled or anything like that?

"A job well done is a well done job."
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 20th Jun 2009 04:34
Well, I ran that sample just fine with and without the sprites in the directory. Do you have the right version of DirectX SDK? (August 2007)

Your_Health = (My_Mood == HAPPY) ? 100 : NULL;
Gravtiy17
15
Years of Service
User Offline
Joined: 19th Jun 2009
Location:
Posted: 20th Jun 2009 06:24
Yes, Here's a screen shot to prove it...
Gravtiy17
15
Years of Service
User Offline
Joined: 19th Jun 2009
Location:
Posted: 20th Jun 2009 20:11
Here's some extra details on what happens when I debug...


And here's a pic to show the disassembly

Login to post a reply

Server time is: 2024-11-25 08:36:09
Your offset time is: 2024-11-25 08:36:09