Click here to Skip to main content
15,889,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Weird Memory Issues Pin
Jose Lamas Rios8-Aug-05 18:25
Jose Lamas Rios8-Aug-05 18:25 
GeneralRe: Weird Memory Issues Pin
LighthouseJ9-Aug-05 4:27
LighthouseJ9-Aug-05 4:27 
GeneralRe: Weird Memory Issues Pin
Jose Lamas Rios9-Aug-05 4:49
Jose Lamas Rios9-Aug-05 4:49 
GeneralRe: Weird Memory Issues Pin
LighthouseJ9-Aug-05 4:54
LighthouseJ9-Aug-05 4:54 
GeneralRe: Weird Memory Issues Pin
John R. Shaw8-Aug-05 18:59
John R. Shaw8-Aug-05 18:59 
GeneralRe: Weird Memory Issues (solved this, another problem though) Pin
LighthouseJ9-Aug-05 4:55
LighthouseJ9-Aug-05 4:55 
GeneralRe: Weird Memory Issues (solved this, another problem though) Pin
Jose Lamas Rios9-Aug-05 5:31
Jose Lamas Rios9-Aug-05 5:31 
GeneralRe: Weird Memory Issues (solved this, another problem though) Pin
LighthouseJ9-Aug-05 10:28
LighthouseJ9-Aug-05 10:28 
I see what you and John R Shaw mention in the next message that I am making a new iterator and when it's created, the data isn't carried forth. No, I only overloaded the 2 increment operators because that's all I want the iterator to do, it's never compared with another, nor will I be decrementing. Doing pre- or post- really doesn't change the function of the programming controlling the iterator, I just incorporated the source from a site and went on from there. I am currently looking into the copy constructor now in hopes I can understand that new concept as well.

I believe I now have a handle on this problem and that the other problem about the _CrtCheckMemory assertion is still plaguing me. As I mentioned before, I read what the function does but I don't understand what causes the assertion, or as some sites mention, what causes the heap to be corrupted. At the time of assertion, the call stack leaves my program at the point where I add an item to a CObList. The added item is valid when it leaves my code, the CObList it's added to is valid but empty at the moment, it's adding the first item to the list. My program creates a class I made derived from CObList. The constructor creates a new CObList, things are added, work is done and if the results pass a test, it's kept and the old is deleted. The destructor removes all items from that list and deletes the CObList itself then ends. Where am I going wrong here? I can paste some code or further explain something if clarification is needed.
GeneralFound What I Needed Pin
LighthouseJ9-Aug-05 13:59
LighthouseJ9-Aug-05 13:59 
GeneralRe: Weird Memory Issues (solved this, another problem though) Pin
John R. Shaw9-Aug-05 9:20
John R. Shaw9-Aug-05 9:20 
GeneralRe: Weird Memory Issues Pin
cmk9-Aug-05 1:03
cmk9-Aug-05 1:03 
GeneralRe: Weird Memory Issues Pin
LighthouseJ9-Aug-05 5:06
LighthouseJ9-Aug-05 5:06 
Generalread and write the structure to file Pin
pnpfriend8-Aug-05 12:58
pnpfriend8-Aug-05 12:58 
GeneralRe: read and write the structure to file Pin
Tim Smith8-Aug-05 13:15
Tim Smith8-Aug-05 13:15 
GeneralRe: read and write the structure to file Pin
pnpfriend9-Aug-05 3:37
pnpfriend9-Aug-05 3:37 
GeneralGDI Object leak detection Pin
prcarp8-Aug-05 11:37
prcarp8-Aug-05 11:37 
GeneralRe: GDI Object leak detection Pin
Blake Miller8-Aug-05 12:02
Blake Miller8-Aug-05 12:02 
GeneralRe: GDI Object leak detection Pin
prcarp9-Aug-05 2:34
prcarp9-Aug-05 2:34 
GeneralRe: GDI Object leak detection Pin
cmk8-Aug-05 15:17
cmk8-Aug-05 15:17 
GeneralRe: GDI Object leak detection Pin
prcarp9-Aug-05 2:38
prcarp9-Aug-05 2:38 
GeneralRe: GDI Object leak detection Pin
John R. Shaw8-Aug-05 19:39
John R. Shaw8-Aug-05 19:39 
Generalmr MFC please do something when I press a key Pin
Spiritofamerica8-Aug-05 10:29
Spiritofamerica8-Aug-05 10:29 
GeneralRe: mr MFC please do something when I press a key Pin
Stober8-Aug-05 11:02
Stober8-Aug-05 11:02 
GeneralRe: mr MFC please do something when I press a key Pin
Michael Kane9-Aug-05 4:48
Michael Kane9-Aug-05 4:48 
GeneralRe: mr MFC please do something when I press a key Pin
Spiritofamerica13-Aug-05 9:46
Spiritofamerica13-Aug-05 9:46 

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.