std::map issue
-
class tagtree { ... public: std::map<CString,tagtree*> mapControllee; }; ** working code ** tagtree *tt; tagtree *ttController; tt = AddNode(...); ttController = tt; tt = AddNode(...); ttController->mapControllee[strName] = tt; <- assert and crash at compare down to _tcmp with pointer lpsz = 0xcdcdcdcd("") anyone help? i use map quite regularly.. from, -= aLbert =-
-
class tagtree { ... public: std::map<CString,tagtree*> mapControllee; }; ** working code ** tagtree *tt; tagtree *ttController; tt = AddNode(...); ttController = tt; tt = AddNode(...); ttController->mapControllee[strName] = tt; <- assert and crash at compare down to _tcmp with pointer lpsz = 0xcdcdcdcd("") anyone help? i use map quite regularly.. from, -= aLbert =-
-
class tagtree { ... public: std::map<CString,tagtree*> mapControllee; }; ** working code ** tagtree *tt; tagtree *ttController; tt = AddNode(...); ttController = tt; tt = AddNode(...); ttController->mapControllee[strName] = tt; <- assert and crash at compare down to _tcmp with pointer lpsz = 0xcdcdcdcd("") anyone help? i use map quite regularly.. from, -= aLbert =-
You haven't posted enough code for the problem to be visible. What does
AddNode
do? Clearly we need this as it determines the value oftt
andttController
. One thing I'll say - The problem is almost certainly withAddNode
. Steve -
You haven't posted enough code for the problem to be visible. What does
AddNode
do? Clearly we need this as it determines the value oftt
andttController
. One thing I'll say - The problem is almost certainly withAddNode
. Stevethe AddNode is nothing more than just "new tagtree with tagtree's attributes". during the config process between tagtree could be linked by using tagtree's map. my post there is to get attention from ppl who met this problem b4. if u never met it, i have to be frank it is quite unlucky day then u will see it. it is a bug in stl library. i fix it by patching my stl xtree file used by map. the bug never go away after service pack 5 for vc6. simply google dinkumware. they are the one who write stl lib in vc6.0 from, -= aLbert =-