Hello ,everyone!
I come from China,first ,I'm sorry for my poor English.
But I really need some help. I use Gecko under Linux & QT. I copy code from
mozilla's example `mfcembed' and modify it.I paste a piece of code here
/////////////<<<<<<<<my code goes bellow>>>>>>>>>>>>////////////////
1 rv = mBaseWindow->InitWindow(nsNativeWidget(this->winId()), nsnull,
2 0, 0, rcLocation.right() - rcLocation.left(), rcLocation.bottom() -
3 rcLocation.top());
4 if(NS_FAILED(rv))
5 {
6 printf("BaseWindow init failed\r\n");
7 return rv;
8 }
9 rv = mBaseWindow->Create();//always fail
10 if(NS_FAILED(rv))
11 {
12 printf("BaseWindow create failed\r\n");
13 return rv;
14 }
/////////////<<<<<<<<<<<<<end my code>>>>>>>>>>>////////////////
these code inhabit in my View class which inherit from QWidget.A MainWindow
is parent of the view.
when I run it in debug mode,the function Create in line 9 never return.I
notice the call stack is:
_dl_deug_state
dl_open_worker
_dl_catch_error
_dl_open
dlopen_doit
_dl_catch_error
_dl_error_run
__dlopen_check
TestQtView::CreateBrowser
I have done a test,I call dlopen before call into InitWindow,it work well;
but if I call dlopen after InitWindow,the same thing happen,it never return!
So I think maybe this is caused by InitWindow call. BUT,I don't konw what's
wrong here.
I only modify the code `this->m_hwnd' to `this->winId()'
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding