[Vorbis-dev] lack of detail for exception in ov_open

Dimitry Andric dimitry at andric.com
Wed Jun 15 05:25:48 PDT 2005


On 2005-06-15 at 06:55:25 Steve Russell wrote:

> "Unhandled exception in Room 101.exe (NTDLL.DLL): 0xC0000005: Access Violation."

> OggVorbis_File vf;
>  FILE* pFile;
>  pFile = fopen("test.ogg", "rb");
>  if(!pFile)
>   AfxMessageBox("fopen failed");
>  //    here's where I get the exception
>  int err = ov_open(pFile, &vf, NULL, 0);

If this is your actual code, and the test.ogg file doesn't exist, then
it is logical that you get an access violation: you are passing a NULL
pointer in the pFile parameter to ov_open.  Don't do that. :)

OTOH, if you still get exceptions even when you pass a correct file
pointer, then it's quite difficult to see what's going wrong without
being able to reproduce it.  Therefore, could you please send the
exact source code you're using, if it's not too large (or proprietary
;), or put it up for download somewhere?  Also, the exact versions of
the vorbis libraries and/or DLLs you're using would be nice.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 183 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20050615/0b8bcdb0/attachment.pgp


More information about the Vorbis-dev mailing list