User forums > Help

problem with wxSmith and Mac-OSX

<< < (7/7)

Auria:

--- Quote from: byo on June 18, 2007, 12:23:02 pm ---Ok, I've updated sources so they use Yields on MAC. I also added Refresh() just before Update() and it works even without timers on Win now (and probably on Linux), but it's not as smooth as when using timers ;). So my request to Auria: Could you test the new code and play with it a little bit? (maybe this Refresh() / Update() sequence will work even withou any yields - using "None" delay type). Anyway, you've writteh that currently there's something shown inside wxSmith but it disappears on some circumstances. Could you describe more exact what are those circumstances? Thanks for your work :)

Regards
   BYO

--- End quote ---

for some reason the latest SVN (4105) doesn't work on mac - widgets are disappearing

(sorry don't have time to test more right now... any idea what is different now?)

rickg22:

--- Quote from: byo on June 14, 2007, 09:49:34 am ---
Anyway, I'd like to avoid calling Yields because it can lead to some rare crashes, expecially when editor is being closed.

--- End quote ---

*shudder*
Yield... crash on exit...
Nightmares... backflashes... the horror, the horror!  :o  :lol:

I had talked to Yiannis a lot about this famous wxYield back in 2005... it was so difficult to find a solution of processing the pending messages and NOT getting into a reentrancy problem.

Ah, it's fun to remember the old times, isn't it... ;-)

byo:

--- Quote from: rickg22 on June 19, 2007, 04:03:48 am ---*shudder*
Yield... crash on exit...
Nightmares... backflashes... the horror, the horror!  :o  :lol:

--- End quote ---
Exactly, Yield comes with troubles, sooner or later :D I just learned that from your lessons ;)


--- Quote from: Auria on June 19, 2007, 03:06:51 am ---for some reason the latest SVN (4105) doesn't work on mac - widgets are disappearing

(sorry don't have time to test more right now... any idea what is different now?)

--- End quote ---

:? I'd swear this should work... maybe it really require two delay steps as it was done when first results showed up (first comes yield, second is timer, maybe two timers will be enough).

Regards
   BYO

Auria:
Update :

byo and I have been working together off these forums on the issue.

What was discovered so far:
- wxSmith uses wxScreenDC.
- In a recent udpate, Apple changed Quartz in a way that broke the mac wxScreenDC implementation
- However wxSmith does not need the functionnality of wxScreenDC and it should be possible to use wxClientDC instead.
- Quick code was made to switch to wxClientDC
- It does not yet work however this time it seems like it will be fixable
- BYO is now on vacation i think so no immediate change is to be expected however

rickg22:
Auria: Please work as much as you can on fixing the problems with wxClientDC. If you manage to get it working, please post a patch. Maybe some of us will have the time and will to post your changes.

Navigation

[0] Message Index

[*] Previous page

Go to full version