Fix for bugs 64978 and 24312. Add a call to SystemTask into the autoreg loop to ensure that the OS has time to grow its File Control Block tables, to avoid running out of FCBs when doing autoreg after rebooting the machine. r=ccarlen, sdagley, sr=scc

This commit is contained in:
sfraser@netscape.com
2001-01-30 21:29:53 +00:00
parent 1adbe544a7
commit 7fd9fcea46

View File

@@ -751,6 +751,15 @@ nsNativeComponentLoader::AutoRegisterComponent(PRInt32 when,
// so that 3rd party shared libraries will be noticed!
validExtension = ((type == 'shlb') || (type == 'NSPL'));
}
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();
}
}
#else