I am using a variable of type std::map and I keep inserting data in it and updating them, But after few minutes, the data I am reading back is corrupted. Is that possible? Or I am mis-diagnosing? Under which circumstances would that be possible?

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

Can't comment on it until we see how you use the map.
–
kennytmMay 6 '11 at 17:39

What are you storing in your map? This really could be something like invalid pointers or many other things.
–
birryreeMay 6 '11 at 17:40

1 Answer
1

Now, this case has little to do with the map itself, but more to do with the object that I put in. In this case, the object that I put in loses scope after the insert, and then is not backed by any memory. (It's an invalid pointer).