Re: Debugging macros
Paris Rossano <[email protected]> Wed, 28 Jan 2026 11:24:05 +0100
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
thank you regards Rossano On 27/01/2026 20:32, Vadim Zeitlin wrote: > On Tue, 27 Jan 2026 14:33:47 +0100 Paris Rossano wrote: > > PR> Dear all, sorry for the silly question, but it’s not clear to me whether the > PR> macros in the following context, which should show dialog messages, work if > PR> called from a secondary thread. > PR> [ https://docs.wxwidgets.org/latest/group__group__funcmacro__debug.html ] > > Yes, they work when called from a non-GUI thread because they use a low > level native function (e.g. ::MessageBox() under MSW) and not wx > facilities. > > Note that you may also define your own assert handler which can use > wxIsMainThread() to check the context in which it is called and do things > differently in the GUI and other threads. > > Regards, > VZ > -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/wx-users/adb691e9-a128-4767-a643-7eba3e991ae7%40escadasolutions.com.