Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Difference betw Debug  & Release Versions

Posted on 1998-11-25
7
Medium Priority
?
187 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
Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

 
LVL 1

Accepted Solution

by:
Bridge earned 40 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

Industry Leaders: 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!

Question has a verified solution.

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

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

705 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