Click to See Complete Forum and Search --> : Debugging a Release build


Zubair Khan
May 17th, 1999, 12:42 PM
I got a program that causes and exception in MSVCRT.DLL in the release build. The Debug build doesn't have this problem and so I can't debug it. I have actually figured that one of them is down to a call to SetDlgItemtext (can callong this too much cause an exception??)

If I use attache to process I get like a thousand first chance exceptions and then it happens, but Im still unable to pin point whats going on!

Thanks for any help - Zubair Khan

chiuyan
May 17th, 1999, 01:53 PM
Calling SetDlgItemText many times should not cause any problems.

To debug the release mode, make sure you build it with the generate program database & debug info options checked, and you may want to disable code optimization (if it doesn't affect your problem). You can then just launch it through the debugger and stop wherever the error is accurring.

This is probably not related to your problem, but I had a similar problem once. I had a static text box with the default name IDC_STATIC, manipulating its text in debug mode (or in either mode in NT) did not cause any problems, and the program worked fine--in 95 running the release build would always crash. I change the name to IDC_SOMETHING_ELSE, and it worked fine.

--michael