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@xiph.org'
containing only the word 'unsubscribe' in the body. No subject is
needed.
Unsubscribe messages sent to the list will be ignored/filtered.
Well what's the differences between the apps? Is one using the multithreaded runtime and one using the single threaded runtime? At 12:43 PM 2/19/2004, you wrote:>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 > > >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@xiph.org' >containing only the word 'unsubscribe' in the body. No subject is needed. >Unsubscribe messages sent to the list will be ignored/filtered.--- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Yup, that was it. I had previously tried the problem app with the multi-threaded debug runtime, because I was using the single-threaded debug runtime. I just tried the non-debug multithreaded and it works. Thanks for the pointer. Shaun ---- Begin Original Message ---- From: programmer_ted <ted@fusionapple.com> Sent: Thu, 19 Feb 2004 12:50:08 -0800 To: vorbis@xiph.org Subject: Re: [vorbis] Ov_open crash in windows <p>Well what's the differences between the apps? Is one using the multithreaded runtime and one using the single threaded runtime? At 12:43 PM 2/19/2004, you wrote:>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 > > >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@xiph.org'>containing only the word 'unsubscribe' in the body. No subject isneeded.>Unsubscribe messages sent to the list will be ignored/filtered.--- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered. <p>---- End Original Message ---- <p><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@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 Friday 20 February 2004 07:43, Shaun Mahoney wrote:> I am getting the following error from MSVC when calling ov_open() > from my app: >> > I am running Win98 and v1.0 off the vorbis libs. The app is single- > threaded.You should upgrade to 1.0.1 before doing anything else.> > The following code works just fine in a test app I built, but when I > add it to another app, the error occurs:This is almost certainly a problem with linking to the wrong c runtime library. Either that, or it's of the many bugs fixed since 1.0 (but I doubt that's the case). Mike --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.