473,406 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

runtime crash in Release mode but working in Debug mode

Hi,

I am facing an issue with release mode.My code is working fine in debug mode.

The problem is quite strange i am having following code.

while((bRet == DbNextRow(cursor)) != SQL_NO_DATA)
{
}

in release mode when first time control is getting into DbNextRow(cursor)its is working fine but in next iteration of while loop my cursor(i.e. void* memory address) is comming as 0x0000005 which is not the one which i passed in dbnextrow(cursor). I dont know why it is getting changed when control is going inside the function.

Could some one help me on this?
Oct 1 '10 #1
2 2146
weaknessforcats
9,208 Expert Mod 8TB
MNaybe you could expose a little more code around this snippet.
Oct 1 '10 #2
donbock
2,426 Expert 2GB
Are sure you want == between bRet and dbNextRow?

As it stands now, bRet is compared to dbNextRow(). The result is 0 or 1 depending on whether they differ or match, respectively. You stay in the loop until SQL_NO_DATA matches that 0 or 1 value.
Oct 1 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: ss | last post by:
Hi I built an exe in console debug mode & Release mode . The console debug mode -exe works fine ...but the release mode EXE starts well but fails mid way . The exe is being started as a...
3
by: Greg Smith | last post by:
Hi, is there a way to tell in code if you are in Debug|Release mode? I have an error handling routine that sends me a e-mail if an error is caught. This is great when the users are working with...
5
by: David Krmpotic | last post by:
it's me again.. with quite interesting discovery :) I was tracing an error for 3 hours instead of 3 minutes because of this surprise. Recently I'm compiling this project in RELEASE with Debug...
0
by: Atul | last post by:
I have a .Net Managed C++ wrapper control for a MFC control. When using the ..Net control in a Visual Studio 2005 Beta 2 C# project and running in Debug mode, I get a crash saying something like...
12
by: nospam | last post by:
All the documentation says that leaving an ASP.NET application in debug mode has a big performance hit. I can't detect any difference between debug and non-debug modes. Am I missing something or is...
6
by: pauldepstein | last post by:
To help me debug, I am writing a lot of information into a stream which I call debug. However, because of the large amount of time taken to print this information, I only want this printed while...
5
by: B. | last post by:
We just recently move to code from VC++6 to VC++.NET 2005 and upgrade the warning level from 3 to 4. In debug mode, we compile the application with no warning no error, but when I build it in...
0
by: sankohar | last post by:
I have two vb projects.I am calling second project from first project.In first project i have added a reference of activex exe of second project. Now when i am running the first project in debug...
2
by: =?Utf-8?B?V2lsbGlhbSBNY0lscm95?= | last post by:
Here's the problem. I've been developing a C++ application since 2003 using the default settings. Comes time to find all the memory leaks. I downloaded a nifty package that won't work unless I...
2
johny10151981
by: johny10151981 | last post by:
Hi, What is the basic difference between release mode and debug mode. cause my developed win32 program perform fine in debug mode compilation. but when i try to release mode it run but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.