0
0

Everytime I run my application, I get twice the same error: “Application error, the memory could not be read”. When running this in my debugger environment, it causes it to quit without saving.

This is hampering debugging seriously.
It only happens if i quit the application after the FSOUND_Init call.

I could not find any documentation about any descruction calls to make before quitting, perhaps I should de-allocate something first, but what and how?

Any help is greatly appreciated,
Haplo

  • You must to post comments
0
0

“It only happens if i quit the application after the FSOUND_Init call. “

Why are you calling FSOUND_Init when the app is closing ?
Btw, you must free all the Stream/Sample with FSOUND_Stream_Close/FSOUND_Sample_Free.

  • You must to post comments
0
0

[quote="KarLKoX":t86lk93w]
Why are you calling FSOUND_Init when the app is closing ?
[/quote:t86lk93w]
Ok, sorry if i wasn’t clear enough. I’m sure the error has something to do with FMod, since i don’t get any error if i run the app without calling any of its api functions, or if i break execution within the debugger environment before any of its api functions is called, i.e. before calling FSOUND_Init

[quote="KarLKoX":t86lk93w]
Btw, you must free all the Stream/Sample with FSOUND_Stream_Close/FSOUND_Sample_Free.
[/quote:t86lk93w]
Thanks for the tip, but this can’t be the problem. After calling FSOUND_Init, no stream is open yet.

  • You must to post comments
0
0

Ok ok, [b:e504prny]stupid stupid[/b:e504prny] me.

I did close the streams, but didn’t call FSOUND_Close just before closing.
The tip made me think about it..

  • You must to post comments
0
0

no matter, it can happen 😉

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.