Prior to 2.9 I would frequently have logic like:
while (app.Pending())
{
app.Dispatch();
}
to release control.
With 2.9 and OSX the while loop never exits.
1. Was my logic wrong before 2.9 and now is showing a latent bug?
2. Is this a bug in the implementation of wxWidgets 2.9 for OSX
Thanks,
Ralph Pass
app.Pending, app.Dispatch, OSX and 2.9
Re: app.Pending, app.Dispatch, OSX and 2.9
This piece of code is something I have never seen and I think it's quite edgy. I'm not sure what you mean by "release control", but for basic control release you should use wxYield
"Keyboard not detected. Press F1 to continue"
-- Windows
-- Windows
-
- In need of some credit
- Posts: 9
- Joined: Wed Feb 27, 2008 9:44 am
- Location: Denmark
Re: app.Pending, app.Dispatch, OSX and 2.9
We have used this construction in our project as well (and it still works on MS Windows with 2.9.3). However, app.SafeYield() did almost the same as this in 2.8.4 - and it works with 2.9.3 so that seems to be the solution to your (and our) problem
BTW wxYield() is deprecated in 2.9.3
Cheers,
Thomas
BTW wxYield() is deprecated in 2.9.3
Cheers,
Thomas