Re[2]: wxGCDC problem on MacOS.
Vadim Zeitlin <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 8 Nov 2023 03:55:08 -0800 (PST) Tony Kennedy wrote:
TK> Thanks Vadim, that turns out to be a really simple fix. Wish I had known
TK> about this before.
TK>
TK> Thing is, it has been working fine for a long time (years), it's only
TK> recently that it has started to fail (not sure if it's Xcode or MacOS
TK> Sonoma).
This code triggers undefined behaviour, so it can do anything at all,
including "working".
I strongly recommend using address sanitizer or valgrind if you're under
Unix-like system, both would have found this problem immediately.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
https://www.tt-solutions.com/
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCZUt6OgAKCRAG6kHeT2we hjQNAJ9fbFIPkGFhs+V/Y3Ogmjc500dj4gCfY9v6hxry0qJQ7SsM6HPkmqMGSrg= =Fveb -----END PGP SIGNATURE-----