Click here to Skip to main content
15,902,636 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: type conversion Pin
Christian Graus8-Aug-05 19:07
protectorChristian Graus8-Aug-05 19:07 
GeneralRe: type conversion Pin
Jose Lamas Rios8-Aug-05 19:46
Jose Lamas Rios8-Aug-05 19:46 
GeneralRe: type conversion Pin
Member 20725789-Aug-05 6:16
Member 20725789-Aug-05 6:16 
GeneralRe: type conversion Pin
Jose Lamas Rios9-Aug-05 6:48
Jose Lamas Rios9-Aug-05 6:48 
GeneralWeird Memory Issues Pin
LighthouseJ8-Aug-05 17:39
LighthouseJ8-Aug-05 17:39 
GeneralRe: Weird Memory Issues Pin
Christian Graus8-Aug-05 17:56
protectorChristian Graus8-Aug-05 17:56 
GeneralRe: Weird Memory Issues Pin
LighthouseJ9-Aug-05 4:19
LighthouseJ9-Aug-05 4:19 
GeneralRe: Weird Memory Issues Pin
Jose Lamas Rios8-Aug-05 18:25
Jose Lamas Rios8-Aug-05 18:25 
Some suggestions:

- Set a breakpoint at the Iterator destructor and check the call stack to see why and from where it's being destructed. If the debugger breaks too often because you have many other iterators, which also get destructed, you may qualify the breakpoint with a condition (e.g.: this==[iterator of interest]) so that the debugger will only break when that particular Iterator is being destructed.

- Just a hunch, but check if somewhere in your code (in particular, in the body of that for loop), you aren't unintentionally assigning the iterator to another pointer on which you later call delete. For example, if you write something like if (anotherIterator = iterator) instead of if (anotherIterator == iterator).



--
jlr
http://jlamas.blogspot.com/[^]
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 
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 

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.