[vorbis-dev] access violation in ov_open using VC6
albert tedja
nicho_tedja at yahoo.com
Sat Mar 6 15:11:16 PST 2004
source:
#include <vorbis/vorbisfile.h>
#pragma comment( lib, "vorbisfile.lib" )
FILE* streamFile = 0;
OggVorbis_File streamOggFile;
<p> streamFile = fopen( filename, "rw" );
if ( !streamFile )
{
OutputDebugString( "Cannot open the specified
file.\n" );
exit(0);
}
OutputDebugString( "Open file OK.\n" );
// access violation exception is thrown here.
result = ov_open( streamFile, &streamOggFile, NULL, 0 );
if ( result < 0 )
{
OutputDebugString( "OggVorbis cannot open the
specified file.\n" );
fclose( streamFile );
exit(0);
}
The exception says:
Unhandled exception in ogg player test.exe (NTDLL.DLL):
0xC0000005. Access Violation.
Disassembly output:
77F9236B je 77F935F3
77F92371 mov eax,dword ptr [esi]
77F92373 inc dword ptr [eax+10h] // right here
77F92376 push dword ptr [ebp-4]
77F92379 mov eax,dword ptr [esi]
=====
---------------------------------
albert tedja
<p>__________________________________
Do you Yahoo!?
Yahoo! Search - Find what youre looking for faster
http://search.yahoo.com
--- >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