[vorbis-dev] win32: Encoder using vorbisenc.dll - AV?

Ingo Ralf Blum ingoralfblum at gmx.de
Fri Jul 20 06:45:48 PDT 2001



> ML> When I compile either oggenc or encoder_example with static libraries,
they
> ML> work fine, but when I try them with the dynamic libraries, I get an access
> ML> violation in vorbisenc.dll with both oggenc and encoder_example. Can
anyone
> ML> on win32 confirm this?

Yes.

> You may be mixing singlethreaded (in oggenc and the examples) and
> multithreaded (in the vorbis dlls) C runtime libaries. Please turn off
> any /NODEFAULTLIB options, and check if you get warnings about libc,
> libcmt and such like.

I got this error also when NOT mixing ST and MT msvcrt...

> I always use my own VC project files to compile all vorbis programs
> (since the project files in the CVS repository seem quite broken), and
> they all work without problems, either static or dynamic. If you like,
> I can send you my project files.

...but I'm building a DLL and not an EXE, which makes a difference, especially
when mixing MFC and Direct Show Base classes. Since a month I'm now linking
statically, so I don't know if this problem has vanished. I also didn't test it
with another runtime library like pw32 or the Cygwin/GCC combination.

Regards Ingo

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list