Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#12 vorbis_info_clear problem

closed
None
5
2006-06-24
2004-03-06
Jasper
No

I noticed that the call to vorbis_info_clear is
commented out in Encoders/EncoderVorbisDll.cpp and that
you are still using vorbisenc.dll. I just recently
struggled with a crashing vorbis_info_clear myself and
I think I now know why. vorbis_info_clear crashes when
trying to free mode_param[i], this structure is
allocated by vorbisenc.dll. But vorbisenc.dll uses a
different instance of the C runtime library, which uses
a different heap, than vorbis.dll and therefor
vorbis.dll can't free this memory (according to the
MSDN Library and the comments above
_CrtIsValidHeapPointer).
Luckily recent versions of the vorbis.dll include all
the functionality of vorbisenc.dll, so you can simply
use vorbis.dll instead of vorbisenc.dll, perhaps
falling back on the old mechanism (using vorbisenc.dll
and not calling vorbis_info_clear) when the vorbisenc
functions aren't found in vorbis.dll.

Discussion

  • Albert L Faber
    Albert L Faber
    2006-06-24

    Logged In: YES
    user_id=1069

    changed code, so all functions from vorbis.dll are used,
    will be available in cdex 1.70b3 release

     
  • Albert L Faber
    Albert L Faber
    2006-06-24

    • assigned_to: nobody --> afaber
    • status: open --> closed