Link to home
Start Free TrialLog in
Avatar of ymw2
ymw2

asked on

Difference betw Debug & Release Versions

Hi

When I execute my debug exe, the application work fine.... But it doesn't seem working on the release exe with the exact source code...

Anyone know the reason behind it?? How to remedy it???
Avatar of shaig
shaig
Flag of Afghanistan image

First, it is not your fault. you now who to blame... it's Microsoft!!

If you are using VC5.0 or LOWER, it is well known that release versions don't work. It is soppused to be fixed in VC6.0 although i didn't try it myself yet.
Avatar of ymw2
ymw2

ASKER

But I'm using VC++ 6.0..... :-(
Maybe Microsoft hasn't yet fixed it. However, you could try certain things:
Make sure that the project settings refer to the release libraries.
Rebuild and not build your program.
Hope it helps.
Thanks
pagladasu
ASKER CERTIFIED SOLUTION
Avatar of Bridge
Bridge

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
what error/errors do you get when you try to run in release mode? you can also build release mode with debug info.

good luck,
mikem
It is possible that the compiler/optimizer is causing trouble.  I have seen problems in the past.  To test, Set to Release version, go to menu Project/Setting use the C++ tab, set the optimization to off and re-build your project.  If this un-optimized "Release" version works then you have code with an optimizer bug.  Lots of Luck.

You can turn the optimizer off you individual source code cpp files if necessary.

By the way, I am professionally using Visual C++ 5.0 because it is relatively bug free.  We trail about a year behind Microsoft to give them a chance to find the bugs and issue service packs.
Avatar of ymw2

ASKER

Ya rite