Re: wxGCDC problem on MacOS.
Tony Kennedy <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
Thanks Vadim, that turns out to be a really simple fix. Wish I had known about this before. Thing is, it has been working fine for a long time (years), it's only recently that it has started to fail (not sure if it's Xcode or MacOS Sonoma). Tony. On Wednesday, 8 November 2023 at 11:42:20 UTC Vadim Zeitlin wrote: > On Wed, 8 Nov 2023 03:24:52 -0800 (PST) Tony Kennedy wrote: > > TK> This is using > TK> wxGCDC dc(wxGraphicsContext::Create(wxPaintDC(this))); > > You can't create a wxGC associated with a wxDC which is immediately > destroyed. Please fix the bug in your code and check if you still see the > problem. If you do, please open an issue and attach the diff (_not_ the > entire file) allowing to reproduce it in the sample there. > > Thanks, > VZ > -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/e750d8db-cd66-4968-8a98-38e929ac831en%40googlegroups.com.