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. --- >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.
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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Tue, 2003-04-01 at 22:25, programmer_ted wrote:> I get an access violation when calling ov_clear().Do you close the file before calling ov_clear? If the answer is yes, don't. If the answer is no, I can't help you :) Carsten Haese. <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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
I'm going to try rebuilding the .lib files. I'll tell ya how it goes! --- >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.