Suppress internal wxWidgets error dialogs Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Marcus Frenkel
Experienced Solver
Experienced Solver
Posts: 79
Joined: Thu Sep 25, 2008 12:14 am

Suppress internal wxWidgets error dialogs

Post by Marcus Frenkel »

Hi,

when I use my app which is compiled against the release build, there is an error "No handler found for image type" which cannot really be reproduced (it happens in 0.01%). I want to suppress that error dialog. How can I do that without changing the wxWidgets source?

Thx, Marcus
TrV
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 630
Joined: Wed Jul 04, 2007 1:12 pm

Post by TrV »

Maybe

Code: Select all

wxLogNull noLog;
could do it (i've used it to prevent messageboxes from being displayed during unzipping operations errors).
Marcus Frenkel
Experienced Solver
Experienced Solver
Posts: 79
Joined: Thu Sep 25, 2008 12:14 am

Post by Marcus Frenkel »

Thx I will follow my intuition that this will fix it, since it's hard to reproduce the error right away :)
Post Reply