#70543 - Mac OS running out of FCBs when loading libraries. Now yield time to OS to allow it to grow the FCB table (shouldn't be necessary, apparently is). sr=sfraser,r=macdev

This commit is contained in:
sdagley%netscape.com 2001-05-04 09:01:06 +00:00
parent e101defa3c
commit 91599490da
2 changed files with 8 additions and 11 deletions

View File

@ -751,17 +751,6 @@ nsNativeComponentLoader::AutoRegisterComponent(PRInt32 when,
// so that 3rd party shared libraries will be noticed!
validExtension = ((type == 'shlb') || (type == 'NSPL'));
}
#if !TARGET_CARBON
if (validExtension)
{
// This call to SystemTask is here to give the OS time to grow it's
// FCB (file control block) list, which it seems to be unable to
// do unless we yield some time to the OS. See bug 64978 for the whole
// story.
::SystemTask();
}
#endif
}
#else

View File

@ -1545,6 +1545,14 @@ nsLocalFile::Load(PRLibrary * *_retval)
if (! isFile)
return NS_ERROR_FILE_IS_DIRECTORY;
#if !TARGET_CARBON
// This call to SystemTask is here to give the OS time to grow its
// FCB (file control block) list, which it seems to be unable to
// do unless we yield some time to the OS. See bugs 64978 & 70543
// for the whole story.
::SystemTask();
#endif
// Use the new PR_LoadLibraryWithFlags which allows us to use a FSSpec
PRLibSpec libSpec;
libSpec.type = PR_LibSpec_MacIndexedFragment;