Displaying 1 result from an estimated 1 matches for "loadvorbisfile".
2004 Feb 19
3
Ov_open crash in windows
...C0000005:
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_VorbisFi...