Conflict between debug & release
-
I'm in trying to run a application(vc++)....the exe generated is absolutely running fine in DEBUG version...but when ever i try to rrun in Release version, it's not working properly...this is really a strange problem.... Cud anybody tell me the remedy of this problem? kamalesh
-
I'm in trying to run a application(vc++)....the exe generated is absolutely running fine in DEBUG version...but when ever i try to rrun in Release version, it's not working properly...this is really a strange problem.... Cud anybody tell me the remedy of this problem? kamalesh
kamalesh82 wrote:
I'm in trying to run a application(vc++)....the exe generated is absolutely running fine in DEBUG version...but when ever i try to rrun in Release version, it's not working properly...this is really a strange problem.... Cud anybody tell me the remedy of this problem?
Reading this[^] article by Joseph should help.
Nibu thomas A Developer Programming tips[^] My site[^]
-
I'm in trying to run a application(vc++)....the exe generated is absolutely running fine in DEBUG version...but when ever i try to rrun in Release version, it's not working properly...this is really a strange problem.... Cud anybody tell me the remedy of this problem? kamalesh
Generally, You have some trouble with optimizations. You have to switch on the release version, and then to REBUILD ALL the code. During the compilation and/or linking process, You have to watch carefully at the bottom of the dev. studio, where the warnings/error messages will be shown. Try to make changes the compiler suggests. If the code doesn't work again, try to switch off as many optimizations as You can. After that, rebuild the code again. You can hope that the code will work OK without any optimization. If the problem disappears, You can try to switch on the optimizations one-by-one, and then rebuild the project any time, searching the bug this way. Anytime, watch on the warnings carefully. By the way, as I know, the stack under debug version has some predefined limit. Try to find the stack settings under the release version, and adjust the value - for example, 1MB or more. D. Senic, Belgrade
-
I'm in trying to run a application(vc++)....the exe generated is absolutely running fine in DEBUG version...but when ever i try to rrun in Release version, it's not working properly...this is really a strange problem.... Cud anybody tell me the remedy of this problem? kamalesh
Are you using MFC and custom message handling (ON_MESSAGE, ON_REGISTERED_MESSAGE) at all? If so, check that your handler functions for those messages are declared afx_msg LRESULT funcname(WPARAM,LPARAM) and not anything else. This is a common cause of "works in debug, crashes in release". Alternatively, modify your link properties to generate debugging information, and run the release version under the debugger. You can do this without turning off optimisations. This might help you find the area that's at fault. Steve S Developer for hire