Events in a console app
- From: "JamesR" <wizzer90@xxxxxxxxxxx>
- Date: 26 Aug 2006 11:10:36 -0700
I've tried using a TDataModule with a TServerSocket in a console app,
but for instance OnClientConnect never fires, although the client can
actually connect to the thread. I think it must work a differen't way
in console apps - no windows messages of course, so when I have my
console app waiting on a ReadLn() in the main program, perhaps no
events get fired.
Infact, i've also tried creating the TServerSocket in a TThread, which
again will allow a connection, but the events don't fire.
Do I need to poll for these events. I would presume that TServerSocket
for example would have some internal notification of when the client
connects and call this event.
JamesR.
.
- Follow-Ups:
- Re: Events in a console app
- From: Rob Kennedy
- Re: Events in a console app
- Prev by Date: Re: MessageDlg jams screen update
- Next by Date: Re: Events in a console app
- Previous by thread: how do i use the "Format %" ?
- Next by thread: Re: Events in a console app
- Index(es):
Relevant Pages
|