Events in a console app



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.

.



Relevant Pages

  • Calling console app (dtexec) from windows service
    ... I need to call a console app from a windows service in a ... Client Side: ... Register the remote class as a valid type ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Console application to become COM server?
    ... what would you recommend a quick way to go about it? ... modifications and turn your console app into a COM server. ... the server starts, waits for the client to call ...
    (microsoft.public.vc.atl)
  • Re: Diagnostics.Process class and ASP.NET
    ... server, not the client. ... > You have to remember that ASP.NET runs server side. ... >> In a simple console app the following few lines open up an Acrobat file ... No error message, not ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: IConnectionPoint::Advise failure
    ... the client. ... can debug the server code remotely. ... notifications back to the client thru the connection point because the Advise ... Should I set up the security manually on the client (console app) machine? ...
    (microsoft.public.win32.programmer.ole)