Menu

#652 DIALOG_MESSAGE crashes without a widget base (on Windows)

v1.0 (example)
closed
nobody
None
5
2018-04-19
2015-05-29
No

The most recent GDL with wxWidgets-3.0.2 crashes without a widget base (on Windows. Linux is not tested).

For example, below crashes:

a = dialog_message("")

However, below does not crash:

a = widget_base()
b = dialog_message("")

Discussion

  • Jeongbin Park

    Jeongbin Park - 2015-05-29

    Maybe some extra initialization is needed for wxMessageDialog. And this only occurs with DIALOG_MESSAGE. DIALOG_PICKFILE does not have the issue.

     
  • giloo

    giloo - 2015-05-30

    a = dialog_message("") works for me: linux + wxWidgets 2.8

     
  • Jeongbin Park

    Jeongbin Park - 2015-05-31

    I am investigating the issue, and found that the error occurs at wx/src/msw/msgdlg.cpp, line 433. The file is Windows specific one, so it should be a Windows-only issue.

    Also found that closing a newly created widget (not dialog) also causes crash. However, the problem does not occur if XMANAGER is called after the widget realization.

    In my opinion, it looks like both of the two problems are related to the message loop of wxWidgets..

     
  • Sylwester Arabas

    • status: open --> closed
     

Log in to post a comment.