problem with release build

G

Guest

I have an MFC app that was originally built using VC++ 6.0. I have built it
in both debug and release (both unicode) and run them both fine.

I recently converted the projects to VC++ 7.1 and also built both the debug
and release versions just fine. The debug build runs fine, but the release
build (from VC7.1) fails upon application startup. I get the standard
Microsoft error about the app encountering a problem and must close...

When I look at the error data, I see the following info:

ModName: mfc71u.dll
ModVer: 7.10.3077.0
Offset: 00024cc7

I am stumped as to what my options are in trying to deduce where the actual
problem is. I can only assume that 1 or more of the preprocessor directives
from my VC6.0 project that carried over in the conversion is causing problems
with the VC7.1 release build...not the debug build, however (?).

Any ideas? Thanks in advance.

Jeremy
 
O

Oleg Starodumov

I have an MFC app that was originally built using VC++ 6.0. I have built it
in both debug and release (both unicode) and run them both fine.

I recently converted the projects to VC++ 7.1 and also built both the debug
and release versions just fine. The debug build runs fine, but the release
build (from VC7.1) fails upon application startup. I get the standard
Microsoft error about the app encountering a problem and must close...

When I look at the error data, I see the following info:

ModName: mfc71u.dll
ModVer: 7.10.3077.0
Offset: 00024cc7

Configure your release build to generate debug information (add /Zi to the list
of compiler options, and /debug /opt:ref to the list of linker options). Then start
the release build under debugger and see where and why it crashes, and what
is on the call stack.
It could be also useful to disable optimizations in the release build: /Od compiler
option.

Also this article could be useful:
http://www.flounder.com/debug_release.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top