Re: Isolated wxEvtHandler
Сергей Коныгин <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
I think the application will have one event loop in the wxAppConsole object. I assumed that the wxSocketBase would directly pass events to my server objects. I understand that this was a mistake. So I want to understand how to attach these event handlers to main loop. понедельник, 16 сентября 2024 г. в 17:19:16 UTC+4, Vadim Zeitlin: > 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/ > -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/7d6bff7a-9e2a-49ce-90e5-91ee5dc9a72fn%40googlegroups.com.