[vorbis-dev] Loading a dll from another dll

MC Spanky mcspanky at mac.com
Wed Nov 29 07:29:55 PST 2000



On Wed, 29 Nov 2000, Michael Smith wrote:

> At 11:30 PM 11/28/00 -0500, you wrote:
> >
> >I'm having trouble calling the Ogg Vorbis functions from my
> >code.  Everything goes fine until the first call to an Ogg Vorbis
> >function, ov_open(), when the program crashes.
> 
> This is nowhere near enough information for us to be able to help you.
> Where does it crash? What arguments are you giving to ov_open()? etc. If
> you want help, you HAVE to give details.

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?

> >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");
        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.  
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. 

- Spanky

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