directoryService = 0;
int main(int argc, char **argv){  NS_InitXPCOM(nsnull, nsnull);  nsCOMPtr <nsIChromeRegistry> chromeReg =         do_GetService("component://netscape/chrome/chrome-registry");  NS_ASSERTION(chromeReg, "chrome check couldn't get the chrome registry");  chromeReg->CheckForNewChrome();  // release the chrome registry before we shutdown XPCOM  chromeReg = 0;  NS_ShutdownXPCOM(nsnull);}