473,378 Members | 1,377 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,378 software developers and data experts.

Debug problems with Visula C++

Hello everybody,

I'm experiencing a problem during debug with Microsoft Visual C++: wherever
I set a breakpoint (and even if I disable all breakpoints) the debugger
goes into disassembler mode, and it stops at the same line, returning a
dialog windows that says: "user breakpoint called from code at 0xXXXXXX".
The active module is NTDLL, the istruction is "int 3".
The odd thing is that if I open my code on another PC, it works fine, and so
does it if I launch it normally.
Can you help me? It's not very confortable working without the chance to use
the debug.

Thank you very much
Davide
Aug 26 '05 #1
3 1449

"Polvere@Lab" <dm***********@firenze.net> wrote in message
news:de**********@area.cu.mi.it...
Hello everybody,

I'm experiencing a problem during debug with Microsoft Visual C++:
wherever
I set a breakpoint (and even if I disable all breakpoints) the debugger


Off-topic. Please see:
http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Regards,
Sumit.
--
Sumit Rajan <su*********@gmail.com>
Aug 26 '05 #2
Davide,

I have just recently run into this problem in one of my projects. I
discovered that it is an assertion error that happens when debugging
your code. Somewhere in the VC++ project, one of the default debug
symbols causes the debugger to halt when such an assertion arises. You
will notice this by the exact behavior you described (user breakpoint,
NTDLL, int 3, etc.). When you run your program normally, nothing
should happen. However, you probably have some memory issue that you
need to find.

In my case, I was using SAFEARRAYs and destroying SAFEARRAYs with COM
object references in them. For some reason, this did not boad well
with the debugger. I'm still doing research to understand the exact
context of the problem.

Aug 26 '05 #3
"Jordan" <jo***********@gmail.com> ha scritto nel messaggio
news:11**********************@g44g2000cwa.googlegr oups.com...
Davide,

I have just recently run into this problem in one of my projects. I
discovered that it is an assertion error that happens when debugging
your code. Somewhere in the VC++ project, one of the default debug
symbols causes the debugger to halt when such an assertion arises. You
will notice this by the exact behavior you described (user breakpoint,
NTDLL, int 3, etc.). When you run your program normally, nothing
should happen. However, you probably have some memory issue that you
need to find.


Thank you Jordan, I fixed the problem. Try this (as suggested to me):

"You can also try to enable Full PageHeap and test the application with it:

HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution
Options\YourApp.exe
GlobalFlag = REG_DWORD 0x2000000
PageHeapFlags = REG_DWORD 0x3
(replace YourApp.exe with the real name of your executable)"

Bye
Davide
Aug 26 '05 #4

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

Similar topics

0
by: Rujuta Gandhi | last post by:
Hi All, I m facing a problem with Visual Sourcesafe and visula studio .net 2005 (beta version). It corrupts the viual sourcesafe file named 'Names.Dat' frequently. And each time recovering...
2
by: PJ | last post by:
I'm at the end of my rope, I've tried everything I can think of and, while the problem is all over google, no answer has worked for me. I'm getting the following error while trying to start my web...
6
by: Peter Afonin | last post by:
Hello: I'm running Windows server 2003. I've never had any problems with debugging, but now I cannot debug ANY of my projects. I'm getting this error: "Error while trying to run project:...
4
by: Michael Augustine | last post by:
I am having problems debugging an Web form app in .net. I am getting the following error message "Unable to Start Debugging on the Webserver. Catostrophic Failure." I think the problem has to...
1
by: Oney | last post by:
I began to use Windows 2003 server for a short time. Whenever I try to open an ASP.NET Application and debug ASP.NET Application it returns errors. I didn't have problems like that when I was using...
2
by: njr | last post by:
Having copied a number of folders from my development PC (XP) to a development server (W2003) and installed them under wwwroot (and created applications in IIS) I have problems when I include the...
11
by: AG | last post by:
Hi all, New install of VS 2005 Pro (SP1) on new machine with Windows XP Pro SP2, Core 2 Extreme Quad Core processor, 4GB RAM. Trying to debug a Web Application Project. I had no problems...
2
by: Dave Johansen | last post by:
I just converted a solution from Visual Studio 2003 to Visual Studio 2005 and the Debug mode seems to be running just fine, but the Release mode crashes on the following code: std::ifstream...
3
by: =?Utf-8?B?bG10dGFn?= | last post by:
We have developed a number of different applications (ASP.NET web site, Windows services, DLLs, Windows forms, etc.) in C# 2.0. We have developed and unit tested all these applications/components...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.