Hello, When I compile either oggenc or encoder_example with static libraries, they work fine, but when I try them with the dynamic libraries, I get an access violation in vorbisenc.dll with both oggenc and encoder_example. Can anyone on win32 confirm this? It's strange because vorbisfile.dll *does* work with vorbisfile_example, and the configuration for vorbisfile.dll is exactly the same (only the names are different.) I guess it can't be a problem in the source because static linking works OK, but if vorbisfile does work dynamically with the same config as vorbisenc, it is a MSVC problem perhaps? Matthijs --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Dimitry Andric
2001-Jul-20 04:34 UTC
[vorbis-dev] win32: Encoder using vorbisenc.dll - AV?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2001-07-19 at 16:48:44 Matthijs Laan wrote: 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? 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 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. Cheers, - -- Dimitry Andric <dim@xs4all.nl> PGP Key: http://www.xs4all.nl/~dim/dim.asc Fingerprint: 7AB462D2CE35FC6D42394FCDB05EA30A2E2096A3 -----BEGIN PGP SIGNATURE----- Version: PGP 6.5i Comment: http://www.gn.apc.org/duncan/stoa_cover.htm iQA/AwUBO1gJQrBeowouIJajEQIF/QCg5LeNRTs1iDkJorM1KDkdS0LaXD4AnjJE 0l/t5mI5eqZ2/o1uJTDsAwBf =xzzS -----END PGP SIGNATURE----- --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Monty
2001-Jul-23 11:28 UTC
Hey Jack, was Re: [vorbis-dev] win32: Encoder using vorbisenc.dll - AV?
On Thu, Jul 19, 2001 at 04:48:44PM +0200, Matthijs Laan wrote:> > Hello, > > When I compile either oggenc or encoder_example with static libraries, they > work fine, but when I try them with the dynamic libraries, I get an access > violation in vorbisenc.dll with both oggenc and encoder_example. Can anyone > on win32 confirm this?Jack believes we've discovered the problem here... In a number of places, we're keeping function calls in static arrays that are passed from module to module. I'm relating the following second-hand, (and I'm not a win32 developer ;-) so I may be misremembering slightly, but these arrays being marked as 'data' rather than 'code' in the project file is causing the trouble. Jack/Mike, please jump in here and prevent me from sounding any more like an idiot. Monty --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.