[wx-dev] Fix for Reentrance problems in events (Sockets problem, even more?) (Was: Status of the SOC2006_SOCKET branch)

Tim Kosse tim.kosse at gmx.de
Fri Oct 6 13:39:47 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Albert van Peppen wrote:
> 1) After some investigation it turned out that when using event driven
> sockets handling, the EventHandler class was called reentrant, which
> eventualy causes wxYield() to enter a recursive state.
>  
> I did change the eventhandling in such a way that you can specify per
> event handler wheter or not it is allowed to be reentrant (although i
> cannot see why it should be reentrant, but since this is the old
> behaviour i left this to be the default).
>  
> This fixes my problem and i can imagine it can fix sever problems with
> controls as well (if they are declared non-reentrant).

While I didn't notice any problems myself, some of my users reported
strange behavior which could be related to this reentrance issue. For
which branch did you create your changes?
In any case, I'd be very interested in your modifications to the socket
classes.

> Should i post a patch for these issues?

Absolutely, please post a patch for further discussion.

> And if so, how is the best way; against latest head or against 2_6 branch?

For the discussion of the changes, a patch to CVS HEAD should suffice.
Later on, a backport to 2.6 would be nice as well.

Tim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFJr8T8N9+lcqiUkURApfYAJ9IcPG6U5qQ+uiveNBz//etSOc9UwCgqhxC
wU20KUZY6Ye2irVnLmHCZKo=
=Jc1c
-----END PGP SIGNATURE-----




More information about the wx-dev mailing list