PR_AtomicIncrement(&g_InstanceCount);
nsresult res = NS_OK;  res = InitResources(); NS_ASSERTION(NS_SUCCEEDED(res), "error initializing resources");
nsCharsetMenu::nsCharsetMenu() {  NS_INIT_REFCNT();  PR_AtomicIncrement(&g_InstanceCount);  Init();  // XXX create the services here and send them as params to init methods  InitBrowserMenu();  InitMaileditMenu();  InitMailviewMenu();  InitComposerMenu();}