Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to drag and drop bitmap Pin
Niklas L8-Jul-11 0:38
Niklas L8-Jul-11 0:38 
Questionassertion failure Pin
mrby1237-Jul-11 18:29
mrby1237-Jul-11 18:29 
AnswerRe: assertion failure Pin
Malli_S7-Jul-11 20:20
Malli_S7-Jul-11 20:20 
AnswerRe: assertion failure Pin
CPallini7-Jul-11 22:16
mveCPallini7-Jul-11 22:16 
GeneralRe: assertion failure Pin
Albert Holguin8-Jul-11 3:41
professionalAlbert Holguin8-Jul-11 3:41 
AnswerRe: assertion failure Pin
Stefan_Lang8-Jul-11 0:19
Stefan_Lang8-Jul-11 0:19 
GeneralRe: assertion failure and "user break point called from code at 0x7c90120e" Pin
mrby1238-Jul-11 7:17
mrby1238-Jul-11 7:17 
GeneralRe: assertion failure and "user break point called from code at 0x7c90120e" Pin
Stefan_Lang10-Jul-11 22:33
Stefan_Lang10-Jul-11 22:33 
You haven't mentioned what tools you use to develop and debug, but if you got a debugger running, it should automatically open the source code at the position where the error occurs. The message however sounds like it's from internal code, so, most likely, you won't recognize the code as yours.

You now need to find out where in your code this function was called. For that you need to check the call stack. If no window is shown for it, see if you can activate it from the menu. If you don't know how to do this, check the help function from your development environment.

Once you have the call stack, the focus will likely be on the topmost line, indicating the function that is shown in your source code window. Usually you can make an educated guess what kind of functionality should be performed here from the name of the function. I still suspect you're inside some deallocation routine, but it may be something different; check this!

Now scan down the list in the call stack and find the first function that you recognize as part of your own source code. Doubleclick it or do whatever is required to navigate to that position. The source code window will then show the exact location in your source code where another function not from your source code is called. If the problem occurs during deallocation it may be tricky though, as the call may in fact occur at the end of a scope, where stack variables are destroyed. In that case the cursor in the code window may point to a line past the end of the scope; this can be a bit confusing at times...

Anyway, once you've located the right location in your code, check the values of the parameters that are involved in the function (or deallocation) call, and see if they have values in the range you expect. Again, if this a deallocation problem, you may not see anything unusual amiss - in this case, if you don't know how to proceed, copy some of the code at that location and post it here.
QuestionCan I create another CMutex object when a named CMutex object being locked? Pin
Jun Du7-Jul-11 9:29
Jun Du7-Jul-11 9:29 
AnswerRe: Can I create another CMutex object when a named CMutex object being locked? Pin
CPallini7-Jul-11 10:36
mveCPallini7-Jul-11 10:36 
GeneralRe: Can I create another CMutex object when a named CMutex object being locked? Pin
Jun Du7-Jul-11 13:09
Jun Du7-Jul-11 13:09 
AnswerRe: Can I create another CMutex object when a named CMutex object being locked? Pin
Albert Holguin7-Jul-11 13:48
professionalAlbert Holguin7-Jul-11 13:48 
GeneralRe: Can I create another CMutex object when a named CMutex object being locked? Pin
CPallini7-Jul-11 21:26
mveCPallini7-Jul-11 21:26 
GeneralRe: Can I create another CMutex object when a named CMutex object being locked? Pin
ThatsAlok7-Jul-11 21:33
ThatsAlok7-Jul-11 21:33 
QuestionCComboBox in a Modeless Dialog Pin
softwaremonkey7-Jul-11 8:08
softwaremonkey7-Jul-11 8:08 
QuestionRe: CComboBox in a Modeless Dialog Pin
Maximilien7-Jul-11 8:20
Maximilien7-Jul-11 8:20 
AnswerRe: CComboBox in a Modeless Dialog Pin
Richard MacCutchan7-Jul-11 9:22
mveRichard MacCutchan7-Jul-11 9:22 
GeneralRe: CComboBox in a Modeless Dialog Pin
softwaremonkey7-Jul-11 10:59
softwaremonkey7-Jul-11 10:59 
AnswerRe: CComboBox in a Modeless Dialog Pin
Albert Holguin7-Jul-11 11:00
professionalAlbert Holguin7-Jul-11 11:00 
QuestionPure virtual base class question Pin
Erudite_Eric6-Jul-11 22:56
Erudite_Eric6-Jul-11 22:56 
AnswerRe: Pure virtual base class question Pin
వేంకటనారాయణ(venkatmakam)6-Jul-11 23:23
వేంకటనారాయణ(venkatmakam)6-Jul-11 23:23 
GeneralRe: Pure virtual base class question Pin
Erudite_Eric7-Jul-11 0:31
Erudite_Eric7-Jul-11 0:31 
GeneralRe: Pure virtual base class question Pin
Richard MacCutchan7-Jul-11 1:36
mveRichard MacCutchan7-Jul-11 1:36 
GeneralRe: Pure virtual base class question Pin
Erudite_Eric7-Jul-11 22:28
Erudite_Eric7-Jul-11 22:28 
GeneralRe: Pure virtual base class question Pin
Richard MacCutchan7-Jul-11 23:02
mveRichard MacCutchan7-Jul-11 23:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.