Page 1 of 1

app.Pending, app.Dispatch, OSX and 2.9

Posted: Fri Oct 14, 2011 6:56 pm
by rppass
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

Re: app.Pending, app.Dispatch, OSX and 2.9

Posted: Fri Oct 14, 2011 11:09 pm
by Auria
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

Re: app.Pending, app.Dispatch, OSX and 2.9

Posted: Thu May 31, 2012 1:12 pm
by tmsorensen
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