Mattia,
Maybe I found a bug with wxWindows and sleep. see if you can duplicate it.
If you make a Show(1) to a frame, the first sleep() after the show are
ignored by perl!
I was looking about sleep in the pod and I saw that if perl receive a
SIGALRM it go out of a sleep. Maybe wxWindows create a SIGALRM and this make
confusions. You can't use sleep() with alarm() too, because in some OS (like
Win32) sleep() was internally implemented with alarm().
I don't know if this erro exist in other functions, like Show(). To fix
this in my App I put this code after the Show:
for(0...3) {sleep(0)} # Sometimes need more than one to fix.
I only saw the bug in Perl 5.8 Win32. I haven't Perl 5.6.1 for Win32 any
more to test...
Graciliano M. P.
|