<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=4>I am having one frustrating time trying to decipher
why ov_read is failing in my MFC/C++ application, and I see in Google results
that others have had difficulty as well. <FONT face=Arial size=4>These
google discussions generally involve libraries, dll's and linking options, as
though there are perhaps some basic incompatibilities between ogg vorbis and
win32 and/or MFC/C++. Very confusing.</FONT></FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>If I pass fopen a fictitious filename, ov_open
returns the proper error. However, if I pass a legitimate filename,
ov_open crashes without giving me any apparent clue.</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>Would anybody have a comment or suggestion? I
get no responses whenever I post in the codec forums, so I am posting
here. Some kind of clue would certainly be much appreciated.</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>"Unhandled exception in Room 101.exe (NTDLL.DLL):
0xC0000005: Access Violation."<BR><BR>OggVorbis_File vf;<BR> FILE*
pFile;<BR> pFile = fopen("test.ogg", "rb");<BR> if(!pFile)<BR>
AfxMessageBox("fopen failed");<BR> // here's where I get
the exception<BR> int err = ov_open(pFile, &vf, NULL,
0);<BR></FONT></DIV>
<DIV><FONT face=Arial size=4>debugger simply says:</FONT></DIV>
<DIV><FONT face=Arial size=4><BR>NTDLL! 7c918fea()<BR>NTDLL!
7c90104b()<BR>MSVCRT! 77c413b0()<BR>VORBISFILE!
10001d1d()<BR></DIV></FONT></BODY></HTML>