this ist the destructor of my own class SoundManager:
for (int vectorIndex = 0; vectorIndex < (int)soundInstanceVector->capacity(); vectorIndex++)
And amazingly my programm doesn’t close, because I found out, that the function system->release(); blocks. If I comment it out. everything works fine.
Does anyone has an idea what I can do against it? Or is it simply a bug?
- h3x0g3n asked 11 years ago
you will notice every single example calls System::release, when you say ‘blocks’ to you mean hangs, because if it blocks for a few hundred ms then that is expected if it has to close down streams etc.
You have not given a very detailed case or how to reproduce it, i expect maybe you are possibly doing something that makes the system unstable, but i’d need more information.
ok sorry for less information:
I want to use FMod with Ogre, so I use the SoundManager class(very slightly adjusted), which was written to implement FMod into Ogre.
However anything is wrong with the code, I think, it stops at the release function, how described above.
Not to flood this forum with all my code, you can get the SoundManager class code at:
And this is, what I do in my application:
SoundMgr = new SoundManager;
delete SoundMgr;//stops at system->release();
And thanks for your quick answers.
Please login first to submit.