[regex] wxRegex::Compile will always popup a message box if the pattern was not valid (Issue #24545)

8 views
Skip to first unread message

kipade

unread,
May 20, 2024, 8:11:55 AMMay 20
to wx-...@googlegroups.com, Subscribed

Description

As most of the wx users, I use wx in my GUI application, so, the wxLogError will show me a error message box. But, when I use wxRegex, it sill call wxLogError when I compile a invalid regular pattern. If I suppresse the error log message box, I will lost all the error message window within the application.
I think there should be a way to avoid the error message box in wxRegEx and should normal message box in other gui modules, but there might be some more and complexed work have to be done, but it should not be a good design idea to do so. Because, wxRegEx is not GUI related, although it lives in a GUI toolkit, there is no reason to throw a GUI notifycation within a NON GUI module, right?
I do not to write code to avoid the message box, if there was a cogent reason make me have to.
Thanks.

Platform and version information

  • wxWidgets version you use:3.2.1
  • wxWidgets port you use:wxGTK
  • OS and its version: Slackware GNU/Linux
    • GTK version: 3.24
    • Which GDK backend is used:
    • Desktop environment :5.21
    • Current theme:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/24545@github.com>

VZ

unread,
May 20, 2024, 8:29:23 AMMay 20
to wx-...@googlegroups.com, Subscribed

Closed #24545 as not planned.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/24545/issue_event/12865655769@github.com>

VZ

unread,
May 20, 2024, 8:29:27 AMMay 20
to wx-...@googlegroups.com, Subscribed

You can use wxLogNull to suppress the log messages in a local scope or another similar log target to redirect them somewhere.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/24545/2120364165@github.com>

Reply all
Reply to author
Forward
0 new messages