At 11:19 AM 7/28/99 -0700, you wrote:
>#define irLibName "IrDA Library"
>
>You should first do a SysLibFind then if that fails, do a SysLibLoad:
>
> err = SysLibFind(irLibName,&libRefNum);
> if(err != 0)
> {
> err = SysLibLoad(irLibName, irLibCrtr, &libRefNum);
> }
>
>This way if the library is already loaded, you'll just get it's reference.
>Otherwise you'll have to load it. If everyone does this, the library won't
>get loaded multiple times. The IR library should already be loaded, so the
>SysLibFind should be sufficient.
>
So what happens when someone else does a SysLibRemove() but you're not
finished with the library?