473,396 Members | 2,002 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,396 software developers and data experts.

vc7 debug jump wrong line

Vi
Hi,

I have a very weird problem. Have anyone encounter this and how do you
solve it?

For example, I have 20 line of code (example only, no real sense)

0
1 for(int i=0;i<NoOfMatches;i++) {
2
3
4 if(theList.GetNo(i)== (unsigned long) -1) break;
5
6
7 printf("%s\t%f\n",RamDB.GotoEntry(theList.GetNo(i) )->
8 GetFilename(),
9 theList.GetDistanceValue(i));
10
11
12
13
14
15 //nothing here
16
17
18
19
20

Line 0,2,3,5,6,10 is empty, other with command.

Now, when I debug this with breakpoint sets at line 1, it might go in
this fashion, line 2,4,5,7,8,10,13,15,18,19,20 etc. in fact, randomly.

Do anyone know what is happening?

Thanks a lot.

Vi
Jul 19 '05 #1
3 1536
Vi wrote:
Now, when I debug this with breakpoint sets at line 1, it might go in
this fashion, line 2,4,5,7,8,10,13,15,18,19,20 etc. in fact, randomly.

Do anyone know what is happening?


This is off topic here. You may want to ask again at
microsoft.public.vsnet.general, or at microsoft.public.dotnet.language.vc or
similar. You might also want to try to word your question differently there
because I did not really understand what you meant.

--
Unforgiven

"Most people make generalisations"
Freek de Jonge

Jul 19 '05 #2
Vi
"Unforgiven" <ja*******@hotmail.com> wrote in
news:bj************@ID-136341.news.uni-berlin.de:
This is off topic here. You may want to ask again at
microsoft.public.vsnet.general, or at
microsoft.public.dotnet.language.vc or similar. You might also want to
try to word your question differently there because I did not really
understand what you meant.


Thanks for informing me about it. I will post it at your suggested
newsgroup and rephrase it. Just starting to learn to use newsgroup...

Vi
Jul 19 '05 #3

"Vi" <vi***@lycos.co.uk> wrote in message news:Xn***************************@137.205.128.11. ..
Hi,

I have a very weird problem. Have anyone encounter this and how do you
solve it?

There is a newsgroup microsoft.public.vc.debugger that will get you the
answer to this question better than asking it here.
Jul 19 '05 #4

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

Similar topics

1
by: Riadh Elloumi | last post by:
Hi, I have some problems when debugging memory allocation (for both malloc and new) in a program that uses standard lists and vectors. When I add an element to the vector, the overloaded...
1
by: Voronkov Konstantin | last post by:
Hello, All! I have following problem with std::string class. I exproted class from dll which has function which returns std::string. I compiled dll in *release* configuration (using...
1
by: Falquian | last post by:
Hello to all: Apparently when I create exe of the project I must select the configuration Release? instead of Debug that is the one that comes by defect. The problem that I have is that when I...
3
by: Val | last post by:
In vc7 (studio 2002), when I try to debug the first "if" statement, the IDE jumps to the next valid line and evaluates it even if the if-statement is false. What is going on? if(...
10
by: Scott | last post by:
I have a simple asp.net app which works fine in debug mode, but crashes on the following line when I run it on the production server: Dim dt As DataTable I have tried the following variations...
7
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...
2
by: danielsanberger | last post by:
Hi all, I am a complete beginner to asp.net and have to maintain an application on the 1.1 Framework, written in VB.NET. I would like to know, is it possible to debug the .aspx files of the...
3
by: Bob Johnson | last post by:
It is my understanding - and please correct me if I'm wrong - that when building a project in debug mode, I can deploy the .pdb file along with the ..exe and thereby have access to the specific...
2
by: ciccio | last post by:
Hi, I would like to write debug output to my screen but I don't want to use std::cout or std::cerr but rather a thing called debug which would write to std:cerr. Also I would like to have that...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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...
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.