I am trying to add 4 objects to a std::map using the insert method. It works fine for the first 2 objects, but it crashes while adding the third one.
Problem:
http://pastebin.com/r7DLKGvu
here is the function definition:
http://pastebin.com/S6YddaGY
and here is the sound class
http://pastebin.com/PJz3JNPB
The debugger says nothing and the process returns 3.
Further notes:
I am using Windows 7 x86-64
I have overloaded the new operator ( global )
Ask me, if u need more code snippets.
I hope someone can help me.