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<NoOfMatch es;i++) {
2
3
4 if(theList.GetN o(i)== (unsigned long) -1) break;
5
6
7 printf("%s\t%f\ n",RamDB.GotoEn try(theList.Get No(i))->
8 GetFilename(),
9 theList.GetDist anceValue(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 3 1554
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.publi c.vsnet.general , or at microsoft.publi c.dotnet.langua ge.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
"Unforgiven " <ja*******@hotm ail.com> wrote in
news:bj******** ****@ID-136341.news.uni-berlin.de: This is off topic here. You may want to ask again at microsoft.publi c.vsnet.general , or at microsoft.publi c.dotnet.langua ge.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
"Vi" <vi***@lycos.co .uk> wrote in message news:Xn******** *************** ****@137.205.12 8.11... Hi,
I have a very weird problem. Have anyone encounter this and how do you solve it?
There is a newsgroup microsoft.publi c.vc.debugger that will get you the
answer to this question better than asking it here. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 "delete" operator is called
somewhere in the STL library and it cannot find the allocated memory.
How can I avoid this problem ? Can I overload new and delete only in my
code and not in the STL?
You can see my problem by compiling the mem.cpp joined...
|
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 Multithreaded Dll run-time library)
I imported class in application and called function which returns
|
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 execute the application in way it release jump excepctions to me that does not jump to me when I execute in way debug.
Somebody knows to that this can have?
A greeting and thanks to all in advance
|
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( (theDealer.m_nPoints == 15) && (theDealer.Hand.size() == 2) ) //Break Point set here but...
{
vector<Card>::iterator vdi; // ... runs to here once debugging starts. Even if false is returned initially.
vdi = find_if( theDealer.Hand.begin(), theDealer.Hand.end(),...
|
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 which produce the same result:
Dim dt As System.Data.DataTable
Dim dt As DataTable = New DataTable
The error message reads: System.NullReferenceException: Object reference
| |
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
|
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
application (javascript) in some way. I read in a book and on the
internet, that it is possible. I tried something like:
<% Page debug="true" %> and also <% Page trace="treu"%>, bit I get the
|
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 line number of code that throws
an exception. Specifically, I can have an error logging routine that,
amongst other things parses the call stack and tells me the specific line of
code that choked.
It is also my understanding that if building in...
|
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 each new line would start with
a certain starting character.
An example would then be
debug << "Debug line 1\nDebug line 2" << std::endl;
|
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...
|
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...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |