[Vorbis] Direct crash on ov_open
Wessam Bahnassi
wbahnassi at inframez.com
Sun Apr 3 22:45:40 PDT 2005
I'll subscribe there and give it a try, thanks...
Just for the record, I'm using Visual Studio.Net 2003.
My app uses Multithreaded DLL linkage to CRT.
Thanks anyways,
Wessam Bahnassi
> -----Original Message-----
> From: Andy [mailto:andycool22 at peoplepc.com]
> Sent: Monday, April 04, 2005 1:13 AM
> To: wbahnassi at inframez.com
> Subject: Re: [Vorbis] Direct crash on ov_open
>
> try posting your question on the vorbis dev list. that list is for
> developers....they might have more expertise in the areas you're talking
> about =) i'm not sure how to post to that list though, since i'm not on
> it (not a developer, just a user of ogg vorbis =) )
>
> i would maybe try xiph.org's website.
>
> Andy Smith
> andycool22 at peoplepc.com
>
> -----Original Message-----
> From: Michael Smith <mlrsmith at gmail.com>
> Sent: Apr 3, 2005 5:46 PM
> To: Wessam Bahnassi <wbahnassi at inframez.com>
> Cc: vorbis at xiph.org
> Subject: Re: [Vorbis] Direct crash on ov_open
>
> On Apr 3, 2005 12:42 PM, Wessam Bahnassi <wbahnassi at inframez.com> wrote:
> > Greetings,
> >
> > I've just downloaded the Ogg/Vorbis Win32 SDK 'OggVorbis-win32sdk-
> 1.0.1.zip' and
> > made a test app to open an ogg file. But as soon as I call ov_open() the
> program
> > crashes because of an access violation to address 0x00000010...
> > This happens on both Release and Debug builds.
>
> This sort of thing is most likely to be incompatibility between the
> libraries and your executable, caused by how the two are linked (this
> can happen on win32 systems in many ways, the most common is linking
> against the wrong C runtime library).
>
> > void main(void)
>
> That's wrong, but won't be causing your problem in this case. main()
> must return int.
>
> > {
> > // Attempt to open the file
> > FILE *pFile = NULL;
> > pFile = fopen("C:\\IronDaimen.ogg","rb");
> > if (!pFile)
> > return;
> >
> > OggVorbis_File ovFile;
> > memset(&ovFile,0,sizeof(ovFile));
> >
> > int iRetval = 0;
> > iRetval = ov_open(pFile,&ovFile,NULL,0);
> > if (iRetval != 0)
> > {
> > fclose(pFile);
> > return;
> > }
> >
> > }
>
> The rest of this looks fine, so it's probably a linking problem.
>
> >
> > I link against the ogg/vorbis DLLs (tried both debug and release ones).
> > This is really very frustrating... I tried several other files, but all
> crash.
> > WinAmp plays them correctly, so it's not with the files I suppose...
>
> Even if it were the files, if vorbisfile were crashing, that would be a
> bug.
>
> Sorry I can't give you any more specific advice - hopefully one of the
> windows developers on the list will be able to (I don't use windows
> regularly myself, and you didn't give any details about what
> development tools you're using).
>
> Mike
> _______________________________________________
> Vorbis mailing list
> Vorbis at xiph.org
> http://lists.xiph.org/mailman/listinfo/vorbis
>
>
> *Andy Dale*
> Do not let the sun go down while you are still angry.
> Ephesians 4:26 (NIV)
> andycool22 at cinci.rr.com
> AndyCool22 on AIM
> ICQ # 76178574
> MSN Messenger andycool22 at peoplepc.com
> Yahoo! Messenger - andycool22 at yahoo.com
>
>
> ________________________________________
> PeoplePC Online
> A better way to Internet
> http://www.peoplepc.com
>
More information about the Vorbis
mailing list