Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Weird Debug Error

Status
Not open for further replies.

OneSource

Programmer
Jun 18, 2002
22
US
Hi,

Whenever I run my app in debug mode, I get the error "User breakpoint called from code at "0xxxxxxxxx". This error occurs even if I don't set a breakpoint![nosmiley] Just to test things out, I created a new Dialog App, didn't put in any new code, compiled it and ran it in Debug mode and the error still occurred![ponder] Does anyone know how to fix this?[bigears] I'm using VC++ 6.0 on a Windows 2000 box.

Thanks.
 
The problem is because, I think, delete is called inappropriately.

Look the following example:
char * pChar = new char;
delete pChar;
delete pChar;

The above code runs without anywarning outside the debug environemnt, but error is reported in IDE. so please check your code to see if it is the situation. Do pay attention to your class destruction if you use C++.
 
hankgao0703,

Thanks for your reply, but I believe that you didn't read all of my first post. I said that I even created an application using MFC AppWizard without putting in any code at all and the error still occurred when I ran the program. Does anyone know why this is happening? [bigears]
 
Try cleaning the build by selecting 'Clean' on the 'Build' menu. If that doesn't work, re-install Visual C++.
 
Try cleaning the build by selecting '<b>Clean</b>' on the '<b>Build</b>' menu. If that doesn't work, re-install Visual C++.
 
Try cleaning the build by selecting 'Clean' on the 'Build' menu. If that doesn't work, re-install Visual C++.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top