[vorbis] Ov_open crash in windows
Shaun Mahoney
shaunm at canoemail.com
Thu Feb 19 12:43:06 PST 2004
I am getting the following error from MSVC when calling ov_open()
from my app:
Unhandled exception in Progname.exe (KERNEL32.DLL): 0xC0000005:
Access Violation
The call stack shows:
KERNEL32! bff7b9a6()
VORBISFILE! 00471d1d()
I am running Win98 and v1.0 off the vorbis libs. The app is single-
threaded.
The following code works just fine in a test app I built, but when I
add it to another app, the error occurs:
int CSound::LoadVorbisFile(char *fname)
{
FILE *file;
char *pcmData = NULL;
const int pcmDataSize = 0x400000;
pcmData = new char[pcmDataSize];
if(pcmData != NULL)
{
// Open the file
if( (file = fopen(fname,"rb")) != NULL)
{
int oggRetVal = ov_open(file,&m_VorbisFile,NULL,0);
Does anybody have any suggestions as to why the ov_open call works in
one app and not the other?
Shaun
<p>Sign up today for your Free E-mail at: http://www.canoe.ca/CanoeMail
--- >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-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
mailing list