It's a simple bespoke messaging system.  The stream sent out by the server via 
UDP contains both the message string and caption plus an array of information 
about how the message itself and the background to the message should appear 
(images, fonts, colours, position, sizes etc,,,).  The client app simply parses 
the incoming datastream and displays it according to the rules; then when the 
user acknowledges receipt and kills the form by clicking Ok certain data about 
the messsage and the client pc gets logged in a db.
So, for most of the time the client will sit doing nothing but be available to 
receive such a message, which is why it runs in the system tray.  It isn't 
currrently running in its own thread.  I could make it do so, but with the 
shutdown problem seemingly cured,  I wonder if there's much to be gained .....
On second thoughts, even if there's not much to be gained as far as the app is 
concerned, there is something to be gained in coding experience .... maybe that 
should be reason enough.

Thanks for your help (and encouragement)

Steve

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
Behalf Of David Smith
Sent: 29 October 2008 13:30
To: [email protected]
Subject: RE: [delphi-en] Can't log off when UDP app is running

I don't know anything about your app so it's hard for me to answer those 
questions. Most programs that run automatically in the background are good 
candidates for a service, but it is all about running it as a thread as you've 
seen in Delphi help. It's really just an aesthetic decision. But to cure your 
shutdown problems I'd try running it as a thread for sure (unless you've 
already fixed it as you say). That's not that hard to code and there are 
several examples in the Delphi demos. Good luck.
 
Dave



***************************************************************************
This e-mail and any files transmitted with it are confidential. If you are not 
the intended recipient, any reading, printing, storage, disclosure, copying or 
any other action taken in respect of this e-mail is prohibited and may be 
unlawful. If you are not the intended recipient, please notify the sender 
immediately by using the reply function and then permanently delete what you 
have received.
Content of emails received by this Trust will be subject to disclosure under 
the Freedom of Information Act 2000, subject to the specified exemptions, 
including the Data Protection Act 1998 and Caldicott Guardian principles.
This footnote also confirms that, unless otherwise stated, this email message 
has been swept by Sophos Anti-virus for the presence of computer viruses.
***************************************************************************

Reply via email to