473,672 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Release build inconsistant behaviour

We distributed an VS6 "C" executable.(Bui lt on WIN2K with release mode.)
Surprisingly we are finding runtime errors for q workflow on all XP m/c and
some of the WIN2K systems.All the WIN2K pcs we used for testing never shown
any such error.
If you have any idea of this strange bahaviour.Pleas e let me know.Appretiate
your help in advance.
(NOTE: On XP when it throws runtime error,I am able to track the root
cause,I am keen to know why is it hidden on WIN2K OS)

Nov 17 '05 #1
4 998
>We distributed an VS6 "C" executable.(Bui lt on WIN2K with release mode.)

What else did you install with it? Have you installed the (correct)
versions of any DLLs your program depends on?
Surprisingly we are finding runtime errors for q workflow on all XP m/c and
some of the WIN2K systems.


Have a look at "Common Problems Switching from Debug to Release Build"
in your VC++ help.

If those don't help you'll need to debug your release version to
locate the cause - see "Turn on Generation of Debug Information for
the Release Build" in your VC++ help.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 17 '05 #2
Dave
First thanks a lot for your valuable inputs.I am not using any dlls, mine
is plain C application built on Visul studio 6 with release version.Whats
driving me nuts is the same executable runs fine on WIN2K,but throws run time
error alwasys on XP for some workflows/steps.
Can anyone help me whats this missing link...
thanks
sam
"David Lowndes" wrote:
We distributed an VS6 "C" executable.(Bui lt on WIN2K with release mode.)


What else did you install with it? Have you installed the (correct)
versions of any DLLs your program depends on?
Surprisingly we are finding runtime errors for q workflow on all XP m/c and
some of the WIN2K systems.


Have a look at "Common Problems Switching from Debug to Release Build"
in your VC++ help.

If those don't help you'll need to debug your release version to
locate the cause - see "Turn on Generation of Debug Information for
the Release Build" in your VC++ help.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq

Nov 17 '05 #3
>First thanks a lot for your valuable inputs.I am not using any dlls, mine
is plain C application built on Visul studio 6 with release version.
Presumably you're using some 'C' run-time functions, so are you
statically linking the run-time? Have you checked your dependencies
using the Depends utility (http://www.dependencywalker.com/)?
Whats
driving me nuts is the same executable runs fine on WIN2K,but throws run time
error alwasys on XP for some workflows/steps.


As I mentioned, try debugging your release build (on the machine where
the problem occurs).

Dave
Nov 17 '05 #4
(NOTE: On XP when it throws runtime error,I am able to track the root
cause,I am keen to know why is it hidden on WIN2K OS)


What was the reason of the problem on XP? If you share it with us,
it will be much easier to explain why it was not reproducible on Win2K.

Regards,
Oleg


Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
1424
by: Cam | last post by:
Hi all, The code below is a practical exercise and works well running in the debug environment but fails when being compiled for a release build. I believe this is because the debug environment takes care of memory allocation and the release build relies on code to do this. My research in my books and on the web has not provided any great help. I would be grateful for advice on what I need to do to correctly allocate the memory...
12
6103
by: Vasco Lohrenscheit | last post by:
Hi, I have a Problem with unmanaged exception. In the debug build it works fine to catch unmanaged c++ exceptions from other dlls with //managed code: try { //the form loads unmanaged dlls out of which unmanaged exception //get thrown
3
1517
by: lauch2 | last post by:
Can anyone talk me is there existed a "default" value for a un-initialized int variable in a release build in VC6 and VC7.1. (I know there is a compilation warning) For Example: main(){ int a; printf("variable 'a' is un-initialized and its value is = %d\n", a); } I want to know whether the compiler will assign a "default" value to
7
2903
by: Srinivasa Rao | last post by:
I have read in one article that when we compile the application in release mode, all the debug classes and properties will be automatically removed from the code. I tried to implement this thing by using the following code in Page_Load event handler. Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim intcount As Integer intcount = 0 For intcount = 0 To 4
3
2885
by: Steve Franks | last post by:
I'm using Visual Studio 2005 RC and cannot figure out how to produce a "release" build. Am I doing something wrong? I'm wondering if perhaps MS locked out the ability to produce a release build when using the RC since it does not have a go-live license? Or maybe I'm just doing something wrong. I do not want to go live with a release build. Rather I just want to test locally to see if there is a performance difference and also to...
3
1932
by: John C Kirk | last post by:
I've come across an odd situation, where doing a floating point division produces different results for the same numbers. Basically, there are 4 ways to run this application: A) Debug build, inside the IDE B) Debug build, outside the IDE (e.g. launched from Explorer) C) Release build, inside the IDE D) Release build, outside the IDE Using methods A-C produces one result, and using method D produces a
4
1802
by: Saurabh Aggrawal | last post by:
Hi, I have made a dll and it is working fine in the debug build (as expected) but when I run it in the release build it is working strangely. For example, the dll saves the 10 properties on the exit to a .txt file and when it get loaded again these properties are read from the text file and shown on the user interface. Dll can save the values to the text file correctly for both debug and
1
1307
by: Egbert Nierop \(MVP for IIS\) | last post by:
Hi, I have had AtlTrace statements, but for file logging and debugging purposes, I wrote something similar. But when I release the code, the compiler does not 'ignore' the statements just as it does with TRACE or ATLTRACE etc statements. Is there a trick to get this behaviour?
1
1470
by: JB | last post by:
Hi All, I'm experiencing a strange behaviour in VB.NET 2005. My solution contains 4 Projects. When I want to compile a release version, I go to the Configuration Manager and change the Active Solution Configuration to Release. I see all my project in the list changing to Release. However 1 of them (it's a class library) doesn't really change to release and the DLL file is still generated in the Debug folder. Furthermore when I go to...
0
8504
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8419
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8945
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8643
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8697
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6255
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2837
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2093
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1837
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.