Few debug statements added

git-svn-id: svn://10.0.0.236/trunk@18388 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
radha%netscape.com
1999-01-23 00:52:52 +00:00
parent 99ae4cff00
commit 2bc4d3b1d0

View File

@@ -199,11 +199,17 @@ nsViewerApp::Initialize(int argc, char** argv)
rv = nsServiceManager::GetService(kEventQueueServiceCID,
kIEventQueueServiceIID,
(nsISupports **)&mEventQService);
if (NS_OK == rv) {
// XXX: What if this fails?
rv = mEventQService->CreateThreadEventQueue();
if (NS_OK != rv) {
NS_ASSERTION("Could not obtain the event queue service", PR_FALSE);
return rv;
}
printf("Going to create the event queue\n");
rv = mEventQService->CreateThreadEventQueue();
if (NS_OK != rv) {
NS_ASSERTION("Could not create the event queue for the the thread", PR_FALSE);
return rv;
}
// Create widget application shell
rv = nsRepository::CreateInstance(kAppShellCID, nsnull, kIAppShellIID,