Problem in the release exe
-
I had develop an application which is running fine in the debug mode. There is no warnings there in either debug mode.I had handled all the possible exception. When I try to run that code in release mode on my computer it works fine. but when i run that exe in some another computer it crashes it give some memory handled exception on other machine. Can anybody can guide on this. Also if anybody know about the Purifiers available for the VC++6 on Windows NT platform please let me know. Thanks in Advance, N.S.
-
I had develop an application which is running fine in the debug mode. There is no warnings there in either debug mode.I had handled all the possible exception. When I try to run that code in release mode on my computer it works fine. but when i run that exe in some another computer it crashes it give some memory handled exception on other machine. Can anybody can guide on this. Also if anybody know about the Purifiers available for the VC++6 on Windows NT platform please let me know. Thanks in Advance, N.S.
Hi, Usually the problems appear so frequently from 2 resons. If you use MFC and modify the prototype of message handlers like ON_MESSAGE(WM_WHATEVER,OnWhatever) .... OnWhatever has prototype LRESULT OnWhatever(WPARAM,LPARAM) otherwise you get your crash... Other reason is uninitialized mebers. Normaly to avoid such situations you should add for each members default values and so on. By the way to debug it in release version use for your project settings at c/C++ tab page for debug info -> Program database , for optimizations -> Disable Debug and in Link tab check the generate debug info check box. And now you have debug info in release!! Try to get them with Bug Trapper from www.mutek.com I whish you luck and patience, /REMUS
-
I had develop an application which is running fine in the debug mode. There is no warnings there in either debug mode.I had handled all the possible exception. When I try to run that code in release mode on my computer it works fine. but when i run that exe in some another computer it crashes it give some memory handled exception on other machine. Can anybody can guide on this. Also if anybody know about the Purifiers available for the VC++6 on Windows NT platform please let me know. Thanks in Advance, N.S.
If it is always working OK on your machine I would guess that the problem is something to do with the DLLs linked to your app. Have your tried statically compiling the application with MFC libraries?
-
I had develop an application which is running fine in the debug mode. There is no warnings there in either debug mode.I had handled all the possible exception. When I try to run that code in release mode on my computer it works fine. but when i run that exe in some another computer it crashes it give some memory handled exception on other machine. Can anybody can guide on this. Also if anybody know about the Purifiers available for the VC++6 on Windows NT platform please let me know. Thanks in Advance, N.S.
This question looks very familiar and I think I have provided a reply already, so probably it was the CodeGuru web site that I saw it. That site has been having problems so perhaps my reply was lost. One good possibility is that you might be using ASSERT or something like that; if so, then the code would be executed for the debug version only. Another possiblity might be that you are not checking all return codes from SDK functions etc. and there might be an error that you could catch and provide an error message for and quit sooner so that it would be easier to fix. The other answer about uninitiallized variables could be an explanation; I think that the debug version might (I am not sure) initialize memory to zeros eventhough they are not initialized explicitly.