Solved

Difference betw Debug  & Release Versions

Posted on 1998-11-25
7
185 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
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!

 
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

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: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Suggested Courses

739 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