11 Aug
2009
11 Aug
'09
7:53 p.m.
Hello all,
I have an issue with STL std::map. Here's a quick description. I have a member in SPConnectorContext structure that is a map:
std::map<SPKnot* , ConnectionPoint> connpthandles;
Having the following code in a function produces a sigfault:
cc->connpthandles[knot] = it->second;
where cc is a pointer to SPConnectorContext. I have also defined a local variable
std::map<SPKnot*, ConnectionPoint> cph_clone;
and the following instruction executes all right
cph_clone[knot] = it->second;
It seems that somehow the connpthandles map gets scrambled or improperly initialized. I don't know why this is so. Any help is welcome.
Regards, Arcadie