Random crash in DSOutputBuffer dtor

View: New views
1 Messages — Rating Filter:   Alert me  

Random crash in DSOutputBuffer dtor

by GavinF :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everyone,

Does anyone know what I could be doing to randomly cause a crash in the destructor for DSOutputBuffer?  It seems to happen more often when i'm streaming music in addition to playing tons of buffered sounds. 
   
Eventually, I end up getting:

Unhandled exception at 0x4b435553 in MarbleFusion-dbg.exe: 0xC0000005: Access violation reading location 0x4b435553.

And this is what my callstack looks like:

    4b435553()   
>    audiere.dll!audiere::DSOutputBuffer::~DSOutputBuffer()  Line 56    C++
     audiere.dll!audiere::DSOutputBuffer::`scalar deleting destructor'()  + 0x8    C++
     audiere.dll!audiere::RefImplementation <audiere::OutputStream>::unref()  Line 1571 + 0xd    C++
     audiere.dll!audiere::StopEventImpl::~StopEventImpl()  + 0x32    C++
     audiere.dll!audiere::StopEventImpl::`scalar deleting destructor'()  + 0x8    C++
     audiere.dll!audiere::RefImplementation<audiere::File>::unref()  Line 1571 + 0xd    C++
     audiere.dll!audiere::AbstractDevice::eventThread()  Line 136 + 0xe    C++
     audiere.dll!audiere::InternalThreadRoutine (void * opaque=0x003a5ea8)  Line 77    C++
     audiere.dll!_threadstartex(void * ptd=0x003a5eb8)  Line 241 + 0x6    C
     kernel32.dll!7c80b683()    
     ntdll.dll!7c918839()    

I was previously setting my OutputStreamPtr to null after stopping my sounds so I could reuse them (i store them in an array), but that caused this crash to happen consistently.  I am now not setting them to null anywhere, but still sporadically get the crash.  I can post some code if anyone is interested in seeing it, but it's all wrapped up in a sound manager so there is a lot of extra stuff going on.  Mostly, just wondering if anyone has run into this problem before, and remembers what they did to cause it. 

Thanks,

Gavin
gavinDOTfowlerATgmailDOTcom


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Audiere-users mailing list
Audiere-users@...
https://lists.sourceforge.net/lists/listinfo/audiere-users
LightInTheBox - Buy quality products at wholesale price