VorbisFile library crashs when ov_open/ov_test is called the 2nd time
There is a problem with the VorbisFile library. It only works when I open an
OGG file for
the 1st time. After I closed the file and try to open another one or the same
it crashs. It seems it applies to the use of either ov_open or ov_test
functions or their combination.
I wrote a test app that illustrates the bug. It crashs with a message
"Unmapped memory exception". It's available at
http://home.earthlink.net/~yurigulyaev/oggvorbisproject32.sit.hqx
My platform is Mac OS 9.2 and CodeWarrior 8.0. I got the same result with
CodeWarrior 7.0.
From what I read on the net I see that this bug exists on other platforms
too.
BTW, I had to compile shared libs on my own because the OggVorbis
SDK for Mac OS
comes with shared libs that don't export any functions and thus unusable.