Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 30th, 2005, 08:06 AM
Authorized User
 
Join Date: Jun 2003
Location: , , Norway.
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

Reply With Quote
  #2 (permalink)  
Old August 19th, 2005, 05:44 AM
Registered User
 
Join Date: Apr 2005
Location: baramati, maharashtra, India.
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
Reply With Quote
  #3 (permalink)  
Old August 19th, 2005, 06:47 AM
Authorized User
 
Join Date: Jun 2003
Location: , , Norway.
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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:18 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.