Exception 0xC0000005 after invoking BASS_Free during the application shutdown

Started by nadia,

nadia

Hello  ;D

do you have an idea about the possible cause of this exception when calling the FreeBASS function?

   First-chance exception at 0x7853be76 in VB6.EXE: 0xC0000005: Access violation reading location 0x6c9cf1e4.

    bass.dll!7853be76()    
    [Frames below may be incorrect and/or missing, no symbols loaded for bass.dll]   
    bass.dll!785410ba()    
    bass.dll!785410ec()    
    bass.dll!78542402()    
>   MyDll.dll!BassWrapper::FreeBASS()  Line 806 + 0xd bytes   C++
    001aeef4()   

Kind regards

nadia

Ian @ un4seen

Is "FreeBASS" just BASS_Free?

Are you able to reproduce the crash? If so, please get a dump file from it. You can use Visual Studio's "Save Dump As..." option to do that, and then ZIP and upload it here:

    ftp://ftp.un4seen.com/incoming/

nadia

Hello,

yes, the call happens on the call to BASS_Free: if it happens again I will send the dump.
It must be related to the fact that some HSTREAM has not been freed.

Kind regards

nadia

Ian @ un4seen

Quote from: nadiaIt must be related to the fact that some HSTREAM has not been freed.

That shouldn't be a problem, as BASS_Free will free any streams on the freed device. But if you're using BASS via a wrapper DLL (I see "MyDll.dll!BassWrapper" in the posted call stack :)), note you shouldn't call BASS_Free (or really anything outside of KERNEL32.DLL) in the wrapper's DllMain function.