Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bugs in Release but not Debug builds?? WHAT DO I DO?

Status
Not open for further replies.

sirbeatsalot

Programmer
Joined
Dec 7, 2001
Messages
11
Location
US
I have bugs in project I've been working on only when I compile it in Win32 Release mode. I dont know what could make the difference if it works perfectly in Debug build mode. It bugs out and prompts "The instruction at '0x77f67f26' referenced memory at '0x000000'. The memory could not be 'written'" . I'm lost to why this only happens in Win32 Release compilation.

If you have come across this problem as well or know anything that might help.. please let me know.

Thanks!!
 
Hi,

could be something in
#ifndef _DEBUG
...
#endif
You can also check the project settings for differences between debug and release settings.

Hope this helps you

Branko
 
As weird as is sound I've found this myself. You'd run in debug mode without any problems then compile a release version and it would go tits up. What fixed it for me was ensuring the WPARAM and LPARAM parameters were in the declaration (and definition) for my message handlers even when they weren't used.

HTH

William
Software Engineer
ICQ No. 56047340
 
You can turn on debugging in release mode in project settings and just define _DEBUG. The only bad part is that the optimizations make the code all screwey. The only good thing about it is you can USUALLY get some sort of idea.

Check this link


Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top