Forum

> > Off Topic > C++ std::map crashes
Forums overviewOff Topic overviewLog in to reply

English C++ std::map crashes

2 replies
To the start Previous 1 Next To the start

old C++ std::map crashes

Jeff Joker Moreau
User Off Offline

Quote
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.

old Re: C++ std::map crashes

Lee
Moderator Off Offline

Quote
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
To the start Previous 1 Next To the start
Log in to replyOff Topic overviewForums overview