Definition:
std::map<unsigned, CItem*> m_map;
void RegisterEvent(unsigned eventID) {
std::map<unsigned, CItem*>::iterator it = m_map.find(eventID); <<< crashes
if (it == m_map.end()) {
m_map[eventID] = new CItem();
}
else {
...
}
}
The marked row crashes in std::less on second call, the first call works. When watching callstack, the __x argument seems WAY off (as the # of events is < 40, but __x is like 2354918952 (or something else big))...
Ideas?
TIA /R