debug and release

Started by
4 comments, last by iMalc 18 years, 3 months ago
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?
Advertisement
There are hundreds of mistakes that can cause an acces violation. Please show us the offending code so we can see what is wrong.
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.
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.
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.
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.
"In order to understand recursion, you must first understand recursion."
My website dedicated to sorting algorithms

This topic is closed to new replies.

Advertisement