Click here to Skip to main content
15,899,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ Pin
Michael Dunn2-Nov-03 7:46
sitebuilderMichael Dunn2-Nov-03 7:46 
GeneralRe: C++ Pin
slgeorge52-Nov-03 7:48
slgeorge52-Nov-03 7:48 
GeneralRe: C++ Pin
David Crow3-Nov-03 5:35
David Crow3-Nov-03 5:35 
GeneralRe: C++ Pin
Phil Martin2-Nov-03 11:34
professionalPhil Martin2-Nov-03 11:34 
GeneralRe: C++ Pin
slgeorge52-Nov-03 12:13
slgeorge52-Nov-03 12:13 
GeneralRe: C++ Pin
Christian Graus2-Nov-03 12:17
protectorChristian Graus2-Nov-03 12:17 
GeneralRe: C++ Pin
slgeorge52-Nov-03 12:23
slgeorge52-Nov-03 12:23 
GeneralRe: C++ Pin
Christian Graus2-Nov-03 12:26
protectorChristian Graus2-Nov-03 12:26 
OK. In that case, what is happening is that debug mode keeps track of memory being used, and the assertion is telling you that you've not managed your memory properly. You won't get it just from not deleting memory, you must be walking over some memory in a way that doesn't break your program execution ( but Murphies Law says it will when your teacher looks at it ), but which the memory manager doesn't like ( probably with good reason ).

I find that often when I have a problem like this, the easiest way to solve it is to rewrite the code, and to really focus on what you're doing with memory as you do so. You'll probably find that the new version will work, and it will be quicker than going through, trying to find your mistake.


Christian

I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
GeneralRe: C++ Pin
slgeorge52-Nov-03 12:31
slgeorge52-Nov-03 12:31 
GeneralRe: C++ Pin
Phil Martin2-Nov-03 12:22
professionalPhil Martin2-Nov-03 12:22 
GeneralRe: C++ Pin
slgeorge52-Nov-03 12:32
slgeorge52-Nov-03 12:32 
GeneralRe: C++ Pin
Christian Graus2-Nov-03 12:47
protectorChristian Graus2-Nov-03 12:47 
GeneralA splitter window without a divider Pin
DimkaSPB2-Nov-03 6:52
DimkaSPB2-Nov-03 6:52 
GeneralRe: A splitter window without a divider Pin
alex.barylski2-Nov-03 8:21
alex.barylski2-Nov-03 8:21 
QuestionHow to Messages from a new window Pin
ERKs2-Nov-03 6:01
ERKs2-Nov-03 6:01 
GeneralUsing Property Sheet within a PropertySheet Pin
Aamir Butt2-Nov-03 5:25
Aamir Butt2-Nov-03 5:25 
GeneralRe: Using Property Sheet within a PropertySheet Pin
Markyg2-Nov-03 15:13
Markyg2-Nov-03 15:13 
GeneralRe: Using Property Sheet within a PropertySheet Pin
Aamir Butt4-Nov-03 20:12
Aamir Butt4-Nov-03 20:12 
GeneralHello, embarrassing question about header files... Pin
Snyp2-Nov-03 4:18
Snyp2-Nov-03 4:18 
GeneralRe: Hello, embarrassing question about header files... Pin
Terry O'Nolley2-Nov-03 4:31
Terry O'Nolley2-Nov-03 4:31 
GeneralRe: Hello, embarrassing question about header files... Pin
Snyp2-Nov-03 4:45
Snyp2-Nov-03 4:45 
GeneralRe: Hello, embarrassing question about header files... Pin
Nick Parker2-Nov-03 5:11
protectorNick Parker2-Nov-03 5:11 
GeneralRe: Hello, embarrassing question about header files... Pin
Snyp2-Nov-03 5:17
Snyp2-Nov-03 5:17 
QuestionProxy DLL - Redirecting by standard? Pin
Dominik Reichl2-Nov-03 1:29
Dominik Reichl2-Nov-03 1:29 
AnswerRe: Proxy DLL - Redirecting by standard? Pin
Alexander M.,2-Nov-03 7:20
Alexander M.,2-Nov-03 7:20 

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.