Click here to Skip to main content
15,888,129 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Is there anything similar to zIndex Pin
Maximilien27-Jul-10 2:38
Maximilien27-Jul-10 2:38 
QuestionRe: Is there anything similar to zIndex Pin
David Crow27-Jul-10 3:12
David Crow27-Jul-10 3:12 
QuestionDebug Assertion Failed! Pin
T.RATHA KRISHNAN26-Jul-10 21:25
T.RATHA KRISHNAN26-Jul-10 21:25 
AnswerRe: Debug Assertion Failed! Pin
Aescleal26-Jul-10 22:26
Aescleal26-Jul-10 22:26 
GeneralRe: Debug Assertion Failed! Pin
T.RATHA KRISHNAN26-Jul-10 22:39
T.RATHA KRISHNAN26-Jul-10 22:39 
GeneralRe: Debug Assertion Failed! Pin
Cedric Moonen26-Jul-10 22:51
Cedric Moonen26-Jul-10 22:51 
GeneralRe: Debug Assertion Failed! Pin
Aescleal27-Jul-10 1:09
Aescleal27-Jul-10 1:09 
AnswerRe: Debug Assertion Failed! Pin
Iain Clarke, Warrior Programmer26-Jul-10 22:37
Iain Clarke, Warrior Programmer26-Jul-10 22:37 
I have faith that Aescleal has given you the correct answer for your question.

But here's another couple of thoughts...

1/
Pretty much whenever I delete a pointer, I set it to NULL afterwards. This way I find bugs sooner, and simpler.

So...

ASSERT(pSomething);
if (pSomething)
{
    delete pSomeThing;
    pSomething = NULL;
}


This will let you catch double deletes.


2/
You could have found the bug yourself. When you got the assert, choose to debug your program. The error shows up in code you did not write. But look at the call stack window. (Debug, Windows, Call Stack on VS2008). Then look up the stack until you get to code *you* wrote. There you will see the mistake.

99% of the time, the bug will be in your code, even if it shows up elsewhere.

Good luck,

Iain.
I am one of "those foreigners coming over here and stealing our jobs". Yay me!

GeneralRe: Debug Assertion Failed! Pin
Aescleal27-Jul-10 1:07
Aescleal27-Jul-10 1:07 
QuestionBITMAP Pin
rjkg26-Jul-10 19:54
rjkg26-Jul-10 19:54 
AnswerRe: BITMAP Pin
«_Superman_»26-Jul-10 20:03
professional«_Superman_»26-Jul-10 20:03 
AnswerRe: BITMAP Pin
Chris Losinger27-Jul-10 1:41
professionalChris Losinger27-Jul-10 1:41 
QuestionNumber of process in Session 0 Pin
Cvaji26-Jul-10 19:22
Cvaji26-Jul-10 19:22 
AnswerRe: Number of process in Session 0 Pin
«_Superman_»26-Jul-10 19:25
professional«_Superman_»26-Jul-10 19:25 
GeneralRe: Number of process in Session 0 Pin
Cvaji26-Jul-10 19:36
Cvaji26-Jul-10 19:36 
GeneralRe: Number of process in Session 0 Pin
«_Superman_»26-Jul-10 19:37
professional«_Superman_»26-Jul-10 19:37 
GeneralRe: Number of process in Session 0 Pin
ThatsAlok26-Jul-10 19:38
ThatsAlok26-Jul-10 19:38 
GeneralRe: Number of process in Session 0 Pin
Cvaji26-Jul-10 19:45
Cvaji26-Jul-10 19:45 
GeneralRe: Number of process in Session 0 Pin
«_Superman_»26-Jul-10 19:49
professional«_Superman_»26-Jul-10 19:49 
GeneralRe: Number of process in Session 0 Pin
ThatsAlok26-Jul-10 19:37
ThatsAlok26-Jul-10 19:37 
GeneralRe: Number of process in Session 0 Pin
«_Superman_»26-Jul-10 19:41
professional«_Superman_»26-Jul-10 19:41 
GeneralRe: Number of process in Session 0 Pin
ThatsAlok26-Jul-10 23:51
ThatsAlok26-Jul-10 23:51 
AnswerRe: Number of process in Session 0 Pin
Randor 27-Jul-10 10:00
professional Randor 27-Jul-10 10:00 
QuestionCrash Pin
T.RATHA KRISHNAN26-Jul-10 18:56
T.RATHA KRISHNAN26-Jul-10 18:56 
AnswerRe: Crash Pin
Naveen26-Jul-10 19:10
Naveen26-Jul-10 19:10 

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.