I am having a problem with Sample_Free crashing.. I am using the below code to play a preview of a sample (in an editor). It works fine the first type, but if the code runs a second time then it gets an exception in Sample_Free()
pjg->m_pSoundPreview = FSOUND_Sample_Load(FSOUND_UNMANAGED, (char *)pbd->m_pdata, FSOUND_LOADMEMORY, pbd->m_cdata);
I’ve tried both managed and unmanaged sample loads.
is there some threading issues between any of the commands (ie it still needs to run after the function call returns ??
- cleathley asked 15 years ago
you where right Brett, the sample was being free’d twice, (I was assuming since I was passing a pointer in , it would set it to NULL on completion).. anyway put in the appropriate wrappers around everything and it’s all fine..
sorry for troubling you..
- cleathley answered 15 years ago
Please login first to submit.