[vorbis-dev] Loading a dll from another dll

Segher Boessenkool segher at wanadoo.nl
Wed Nov 29 14:11:41 PST 2000



> In order to know where it's crashing, I'll need the source.  Is the
> source for beta3 available in a Windows friendly format?  WinZip doesn't
> understand .rpm files.  Or should I use the nightly CVS?

That should work fine.

> > >I'm calling ov_open() from another dll, which gets explicitly
> > >loaded.  Could that be the problem somehow?  I guess I could include the
> > >Ogg Vorbis source in my dll, but I'd like to do it "properly" if
> > >possible.
> >
> > Shouldn't be a problem.
> 
> Thanks, that's what I wanted to know.
> 
> BTW, here's the code I use to call it:
> 
>         FILE *fp = fopen(file_name_c, "r");

Open it "rb"? It's not a text file, after all.

>         if (fp == NULL)
>         {
>                 GLog->Logf( TEXT("######## Error fopen()ing \"%s\"!"),
> file_name_c );
>                 return;
>         }
> 
>         GLog->Logf( TEXT("**********  OV_Opening file.") );
> 
>         return_value = ov_open(fp, &m_oggvorbis_file, NULL, 0);
> 
>         GLog->Logf( TEXT("**********  Back from ov_open file.") );
> 
> The returned fp is non-NULL, but the last string never gets logged.

Do you write your logs out synchronously? If not, you don't know if
the program got to that last log line or not...

> Unfortunately, I don't know exactly what the error is, since this is
> called from Unreal Tournament, and the only error message is the
> location of the error.

Use a debugger (softice?)

Ciao,

Segher

--- >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