rv = NS_InitXPCOM(nsnull, nsnull, nsnull); NS_ASSERTION(NS_SUCCEEDED(rv), "NS_InitXPCOM failed"); NS_VERIFY(NS_SUCCEEDED(nsIThread::SetMainThread()), "couldn't set main thread");
int main(int argc, char **argv){  // Hack to get il_ss set so it doesn't fail in xpcompat.c  nsIImageManager *manager;  NS_NewImageManager(&manager);  gTheApp = new nsNativeViewerApp();  gTheApp->Initialize(argc, argv);  gTheApp->Run();  return 0;}