Ive recently written a program that uses fmod 3.75 to play wav sound files. Most of the time the program works fine, but four (out of at least 50) times now the program has crashed, and every time the crash log says that it crashes in FSOUND_Mixer_CI because of an EXC_BAD_ACCESS (0x0001) exception. Ive never been able to provoke the crash myself.

Now, I know this is probably my own fault because I overwrite memory somewhere, but I find it strange that the crashes have happened in FSOUND_Mixer_CI each time. So I wonder if anyone could help me out by telling me if it`s mine or fmod´s fault, and maybe give me a pointer to what could be wrong.

One thing is that only the Mac version of the program has crashed, running on Tiger 10.4.5. I`ve never had any problems with running the program on Windows XP. But as the program has been run a lot more times on Mac than on Windows, this could be a coincidence and therefor no Mac-tag. I use gcc 4 to compile on Mac and MinGW on Windows, and fmod 3.75 on both.

Here`s a link to the crash log for one of the crashes.
[url:2wh830o4]http://folk.ntnu.no/~erlinha/crash.rtf[/url:2wh830o4]

If anyone could give any pointers, it would be great, because I`m stuck on this one.

The problem with doing that is that I won’t know if it worked or not, because it crashes so rarely. I’ve never managed to make the program crash myself, and neither have any of the persons that have tried testing it for me for bugs. So if I cut something out and it runs fine, I’ve got no idea how I should know if it actually helped or not…

But the crashlog didn’t give any useful information about what could be wrong? It crashed in different parts of the program each time, but according to the crashlogs the reason is always a nullpointer error in FSOUND_Mixer_CI.