Forum

> > Off Topic > C++ std::map crashes
ForenübersichtOff Topic-ÜbersichtEinloggen, um zu antworten

Englisch C++ std::map crashes

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt C++ std::map crashes

Jeff Joker Moreau
User Off Offline

Zitieren
Ok guys, i've got a small problem:

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.

alt Re: C++ std::map crashes

Lee
Moderator Off Offline

Zitieren
Run gdb with that program, and after it crashes, tell us what the exception was, then enter bt and give us the stack trace.

It seems like a standard call to insert so I'm willing to bet that it's probably in the CSound::load method
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenOff Topic-ÜbersichtForenübersicht