From: | Paul Qureshi |
Date: | 14 Sep 2000 at 20:49:58 |
Subject: | Re: Shared library problem |
On 14-Sep-00, Allan Odgaard wrote:
>> For some reason the test program always crashs at the stage where the
>> library function is called. I'm not sure why it does that, AFAICS my
>> code seems to be okay. What am I missing?
> It seems that only the source for the test program is attached and
> this one seems fine.
I just checked, and it is all attached. The main library code is in
mhi_dir.c. I have built the library and test program okay here, but that
bug I mentioned seems to be causing a problem.
However, I seem to have fixed the bug somehow. I'm not sure what I did,
but it appears that the version I sent to this list works. Maybe I
didn't build it properly or something, me being stupid again :)
> Though you may want to declare 'MHIBase' as "struct Library *", or if
> you insist on using the specific type then do as Gunther suggested and
> close the library like this: CloseLibrary(&MHIBase->base) :-)
Thanks for the tip, I'll remember that!
Cheers,
Paul