Discussion:
showmodal in Init (wxmac 2.9.0)
(too old to reply)
Vadim Zeitlin
2009-04-23 13:31:02 UTC
Permalink
On Thu, 23 Apr 2009 11:57:38 +0200 Riccardo Cohen <***@architectedulogiciel.fr> wrote:

RC> Hello
RC> I could run some samples on 2.9.0 but on one sample, I have a dialog
RC> that is shown as modal dialog during the Init() function of wxApp.
RC>
RC> bool testanywxApp::OnInit()
RC> {
RC> anydialog *dialog=new anydialog(NULL);
RC> dialog->ShowModal();
RC> delete dialog;
RC>
RC> On MacOsX this does not work because there is an assertion :
RC>
RC> ../src/osx/carbon/dialog.cpp(54): assert "loop" failed in DoShowModal():
RC> No Event Loop in place
RC>
RC> and on Win32 this works all right.

The assert was removed/corrected for Windows and GTK but apparently not
Mac... Francesco, can you do whatever you did for these platforms for OSX
as well (in both trunk and 2.9.0 branch) please?

TIA,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Riccardo Cohen
2009-04-28 08:24:38 UTC
Permalink
Hi
I would really appreciate this correction since I'm blocked in porting
my apps to 2.9.0
I tried to comment the assertion, but it is not enough (the dialog does
not appear). in gtk and msw there is a call to wxGUIEventLoopTiedPtr.
That's beyond my knowledge.
Thanks
Post by Vadim Zeitlin
RC> Hello
RC> I could run some samples on 2.9.0 but on one sample, I have a dialog
RC> that is shown as modal dialog during the Init() function of wxApp.
RC>
RC> bool testanywxApp::OnInit()
RC> {
RC> anydialog *dialog=new anydialog(NULL);
RC> dialog->ShowModal();
RC> delete dialog;
RC>
RC>
RC> No Event Loop in place
RC>
RC> and on Win32 this works all right.
The assert was removed/corrected for Windows and GTK but apparently not
Mac... Francesco, can you do whatever you did for these platforms for OSX
as well (in both trunk and 2.9.0 branch) please?
TIA,
VZ
------------------------------------------------------------------------
_______________________________________________
wx-users mailing list
http://lists.wxwidgets.org/mailman/listinfo/wx-users
--
Riccardo Cohen
Architecte du Logiciel
http://www.architectedulogiciel.fr
+33 (0)6.09.83.64.49
Loading...