If I do something similar to the below ov_open always causes an access violation. The call to fopen is successful. Can anybody tell me why? (and how to fix it?) OggVorbis_File vf; int eof=0; int current_section; FILE *fd = fopen("c:\\test.ogg","rb"); if (!fd){ AfxTrace("fopen failed\n"); exit(0); } if(ov_open(fd, &vf, NULL, 0) < 0) { fprintf(stderr,"Input does not appear to be an Ogg bitstream.\n"); exit(1); } Thanks, Lance --- >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.
At 12:41 AM 2/19/01 +1300, you wrote:>If I do something similar to the below ov_open always causes an access >violation. >The call to fopen is successful. >Can anybody tell me why? (and how to fix it?) >That code looks ok, so the problem is probably elsewhere in your code. Also, if you're programming under windows (presumably you are, from the code snippet given), you might be linking against the wrong C runtime libraries. That'll break most windows programs without any useful error messages. It must be linked against the same library as the vorbis libraries (which is usually the 'multithreaded dll') If that isn't the case, then please tell us where it's crashing (use a debugger) Michael --- >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.
Hi! my code causes access-violations in ov_open. I'm using MS VisualC++ 6 SP5 on WinXPpro with oggvorbis 1.0.1 o I tried to compile the vorbisfile-example, shipped with the win32 sdk. it has the same access-violation problem. the fopen()'s are successful! I don't think it's my fault. o I downloaded the libvorbis and libogg, compiled them, installed the dll's and libs.... same error. it doesn't depend on which librarys I link (debug or release). same problem in both cases (I'm using #pragmas to specify the libs) when I debug the app, the error is caused here: (the inc command) 77F59EC5 mov eax,dword ptr [esi+10h] 77F59EC8 mov dword ptr [ebp-4],eax 77F59ECB mov eax,dword ptr [esi] -> 77F59ECD inc dword ptr [eax+10h] this is part of the ov_open-function. <p>HELP! PLEASE! :-) <p>Bastian <p>--- >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.