--Iran.
Iran Q. Hutchinson wrote:
Sorry about that, the message seemed to get truncated, weird, I rewrote the post below. Any help or guidance would be greatly appreciated.
The runtime information I receive is:
Type Manifest File: /opt/builds/mozilla/dist/bin/components/xpti.dat
+++ JavaScript debugging hooks installed.
nsNativeComponentLoader: autoregistering begins.
nsNativeComponentLoader: autoregistering succeeded
nNCL: registering deferred (0)
WARNING: NS_ENSURE_TRUE(mInternalWidget = do_CreateInstance(kChildCID)) failed, file nsWebBrowser.cpp, line 1032
The method execution generating the warning below is a call to Create():
WARNING: NS_ENSURE_TRUE(mInternalWidget = do_CreateInstance(kChildCID)) failed, file nsWebBrowser.cpp, line 1032
It is strange because everything else using the nsIBaseWindow object succeeds:
nsCOMPtr<nsIBaseWindow> baseWindow;
nsCOMPtr<nsIWebBrowser> webBrowser;
// Create a nsWebBrowser instance...
webBrowser = do_CreateInstance(NS_WEBBROWSER_CONTRACTID, &rv);
if (NS_FAILED(rv)) {
return rv;
}
// Give the WebBrowser a pointer to the embedding component which
// implements the callback interfaces. Replace 'this' with
// an appropriate object...
rv = webBrowser->SetContainerWindow((nsIWebBrowserChrome*) browser);
if (NS_FAILED(rv)) {
return rv;
}
baseWindow = do_QueryInterface(webBrowser);
// Initialize the WebBrowser with a native parent window
// (ie. HWND on Win32). Replace 'nativeWindow' with a
// reference to an appropriate native resource...
rv = baseWindow->InitWindow(XtParent(main_w), nsnull, -1, -1, -1, -1);
if (NS_FAILED(rv)) {
return rv;
}
// Create the child window for the WebBrowser.
rv = baseWindow->Create(); <==========================THIS FAILS
if (NS_FAILED(rv)) {
return rv;
}
