Jump to content
  • Advertisement
Sign in to follow this  
luasitdown

debug and release

This topic is 4542 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

To build project in debug mode. it run well. but in release mode. it run with access error. it seem to be a common problem. how to solve it?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Kalasjniekof
There are hundreds of mistakes that can cause an acces violation. Please show us the offending code so we can see what is wrong.


I can not find which part is error.
It only give me 3 number : 0x0058b498 0xC0000005 and 0xcdcdcdcd
Debug mode work ,why release mode not work?

I remove optimization of release mode but not work.

Share this post


Link to post
Share on other sites
Does your app use a log? If not, you can try to spawn a MessageBox("this part did work") after your initialization etc. So you can see what DIDN'T cause the error.

Share this post


Link to post
Share on other sites
When building in release mode, set the build option to include the "pdb" file. This will allow you to debug a release mode app fairly well.

Also, the error suggests that you are not nulling one of your pointers.

Share this post


Link to post
Share on other sites
From Microsoft:
Quote:
0xCDCDCDCD is a debugging value that comes from the bowels of the C runtime library. When you allocate a block of memory in a debug build, it's initialized to this spurious value in the hope of catching bugs. 0xCDCDCDCD is non-NULL and is never a valid memory pointer.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!