Re: Isolated wxEvtHandler
Vadim Zeitlin <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 16 Sep 2024 04:02:36 -0700 (PDT) Сергей Коныгин wrote:
> I'm working on creating a simple library for my server applications. The
> simplified code is shown below. The main application creates a Server
> object. The server creates many ServerSession objects that handle
> connections.
> Since this is a library, I want network events to be handled by these
> objects. But it doesn't work for me. Should I somehow link my wxEvtHandlers to
> the main wxAppConsole (SetNextHandler and SetPreviousHandler)?
It's not clear who is dispatching events in your case. Somebody must be
running the event loop, does your application have one?
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+vLQdOwioQqkxtoG6kHeT2wehgUCZugwTwAKCRAG6kHeT2we hkaEAJ95qlBNRUgcjCoFLWXJDm6qdXPTGgCgk5fOfg8jfbYJUKwDW0B4Vcoa3iQ= =lZuk -----END PGP SIGNATURE-----