[vorbis-dev] Access Violation when calling ov_clear

Michael Smith msmith at xiph.org
Wed Apr 2 05:22:43 PST 2003



On Wednesday 02 April 2003 13:25, programmer_ted wrote:
> I get an access violation when calling ov_clear().  I know ov_open() worked
> because I used ov_info to get the sampling rate and number of channels in
> the .ogg file.  I also know the FILE pointer and the OggVorbis_File
> structure are still in scope (they're member variables of the same class my
> deconstructor is in (where ov_clear() is called)).  Anyone have any ideas? 
> I opened the file using fopen() with the mode "rb".  Also, I use Borland
> C++ Builder 3.

Can you give some example code of yours that causes this? If so, we can try 
and find what you've done wrong. Also, make sure you're either using standard 
calling conventions and structure packing, or telling your compiler that the 
vorbis libraries _are_ even though the rest of your program isn't (this is 
neccesary sometimes on windows, because windows compilers are weird).

<p>Mike

<p>--- >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