mac 2,9 "Cannot nest wxDCs on the same window"
Robin Dunn
robin at alldunn.com
Mon Oct 1 09:55:15 PDT 2007
Riccardo Cohen wrote:
> Hi
> I have a program that works on wxmac2,7 , but with 2,9 it displays the
> following assertion : "Cannot nest wxDCs on the same window"
>
> this happens when I do
>
> wxClientDC *dc=new wxClientDC(diag);
> dc->DrawRectangle(rec);
> delete(dc);
>
> inside a timer_wake event.
> I do not understand exactly what it means.
You can not have more than one wxDC active at the same time for the same
window. Somewhere you have another DC already using diag when the code
above is called.
> Is there something changed
> from 2,7 to 2,9 on dc creation ?
wxMac is now using the CoreGraphics APIs which have a few more
restrictions than what was being used before.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wx-users
mailing list