Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 30th, 2005, 08:06 AM
Authorized User
 
Join Date: Jun 2003
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
Default Different results in Debug and Release mode

Hi, I have the following problem:

In my application I have a dialog that retrieves data from a DB and fills editboxes, CListCtrl's etc. When I test the application in Debug mode, everything works just fine. But, if i change to Release mode, no data will be filled in in the dialog. I am using Visual Studio.Net 2003. Find it a bit difficult to debug this problem since it only happens in Release mode.

Any help is appreciated.

Gert

 
Old August 19th, 2005, 05:44 AM
Registered User
 
Join Date: Apr 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ganesh_pawar13583
Default

this problem is basically occour at the time of calculation
when u can done any calculation at that time may be any variable not Initialsed properly

second possiblity
 when u converting one datatype to another just like float yo int there is rounding problem in release mode so check u r casting


grpawar
 
Old August 19th, 2005, 06:47 AM
Authorized User
 
Join Date: Jun 2003
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thx for your reply. I found this one out myself some time ago.

It was a matter of an integer variable that was not initialized correctly. This integer was used when I was creating a SQL to the database. Some how this variable got a legal value when I was in debug-mode, but when put it over in Release it got some freakish value.

Thanks anyway.

Gert






Similar Threads
Thread Thread Starter Forum Replies Last Post
debug version of 1.37 release? bobarnold BOOK: Beginning Cryptography with Java 1 October 12th, 2007 06:28 PM
No 'Release' mode for build tsfortytwo BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 August 2nd, 2006 09:41 AM
difference between release and debug builds connect2sandep General .NET 2 June 29th, 2005 01:12 PM
Debug v.s. Release in dotnet assembly orencs General .NET 1 July 14th, 2004 12:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.