
debug version works, release version sometimes fails
See my essay "Surviving the Release Version" on my MVP Tips site. There are a number of
classic errors that only show up in the release version. Most are fundamental bugs that
miss getting caught in the debug version for reasons I explain.
InstallShield is irrelevant.
The most likely cause is user-defined window messages with incorrect handlers.
joe
Quote:
>Hi, Happy New Year.
>Can someone tell me how to begin diagnosing this problem?
>(I'm using vc++ 6 and Win98se for development and testing, and
>my project is an mfc sdi app with mfc dynamically linked to it.)
>The release configuration executable of my project runs fine if I run it
>by using either Start/Run or using Windows Explorer and pointing at the
>.exe file in the project's release folder. (A required third party dll is
>in the release folder, too.)
>But I get the Windows error "This program has performed an illegal
>opperation" if I do either of the following:
>1. Install my program using Install Shield / Windows Installer, and
>running the program by using one of the shortcuts to the program with the
>required third party dll in the path, or using Start/Run or Windows
>Explorer with the required third party dll in the same folder as the exe
>file.
>2. Copy the .exe to any folder other than the project's release folder,
>and run it using either Start/Run or Windows Explorer. (with the third
>party dll in the same folder.)
>The debug configuration executable runs fine in all cases.
>How can I isolate the problem?
>Thanks,
>Dan
Joseph M. Newcomer [MVP]
Web: http://www3.pgh.net/~newcomer
MVP Tips: http://www3.pgh.net/~newcomer/mvp_tips.htm