Solved

Difference betw Debug  & Release Versions

Posted on 1998-11-25
7
186 Views
Last Modified: 2013-11-20
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???
0
Comment
Question by:ymw2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 3

Expert Comment

by:shaig
ID: 1325334
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.
0
 

Author Comment

by:ymw2
ID: 1325335
But I'm using VC++ 6.0..... :-(
0
 
LVL 4

Expert Comment

by:pagladasu
ID: 1325336
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
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Accepted Solution

by:
Bridge earned 10 total points
ID: 1325337
Function calls like ASSERT, ASSERT_VALID are removed in release mode. Make sure that you have nothing in these blocks that needs to be executed.
Appart from that its a case of going through placing message boxes in the code to find out where the error occurs. If you have a copy of Purify then your half way there because it is great at sorting problems like this.
0
 

Expert Comment

by:mmachie
ID: 1325338
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
0
 

Expert Comment

by:McCreary
ID: 1325339
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.
0
 

Author Comment

by:ymw2
ID: 1325340
Ya rite
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question