lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] How can I suppress an error message from wx?


From: Greg Chicares
Subject: Re: [lmi] How can I suppress an error message from wx?
Date: Sat, 14 Mar 2009 17:14:25 +0000
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

On 2009-03-14 16:59Z, Greg Chicares wrote:
> 
> I tried suppressing it in the second patch below [2], hoping that
>   original = SetActiveTarget(0);
>   wxFunctionThatDisplaysAnErrorMessage();
>   FlushActive();
>   SetActiveTarget(original);
> would discard the wx message, but that didn't work. Neither did
> an experiment with Suspend() and Resume(). What would work?

Oh, wait, I figured it out:

    bool r = false;
    {
    wxLogNull x;
    r = wxLaunchDefaultBrowser(s);
    }
    if(!r)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]