Menu

#213 Memory fault when frame deleted after iterator Created then deleted

happens every time
open
nobody
None
5
2018-03-16
2018-03-16
Ed Bernard
No

in IteratopImpl and ConstIteratorImpl classes for both frames and tags
// efb 03/15/2018
// must orphan the iterators in the vector chain before freeing memory for this
// else if _ITERATOR_DEBUG_LEVEL == 2 in vector then when the frame is deleted
// _Orphan_all() in xutility for vectors faults when it traverses iterator chain for frame
// must setup ID3_Frame::~Iterator() so this destructor works
// must setup ID3_Frame::~ConstIterator() so this destructor works
virtual ~IteratorImpl() {
_cur._Orphan_me();
_end._Orphan_me();
}
// end efb

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.