Article View: borland.public.cppbuilder.nativeapi
Article #8659Re: Doing ProcessMessages() in the TServiceApplication
From: Remy Lebeau (TeamB)
Date: Mon, 04 Oct 2004 15:52
Date: Mon, 04 Oct 2004 15:52
20 lines
1557 bytes
1557 bytes
"Rex Chen" <chensc@iii.org.tw> wrote in message news:4160EDF4.3A72D30A@iii.org.tw... > In the typical Form based application (TApplication), > I can do things like following... <snip> > waiting for something happen and let the program do > something else. > > but In the Service Application (TServiceApplication), > there is no ProcessMessages() You should not be looping like that to begin with. What exactly are you trying to accomplish in the first place? Typically, you should be using multiple threads instead. Don't put your work in the service's main thread at all, leave that alone to service the incoming SCM requests only. Gambit
Technical Details
Message-ID:
<416171a2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4160EDF4.3A72D30A@iii.org.tw>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,92472450cc43f536 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4160EDF4.3A72D30A@iii.org.tw> Subject: Re: Doing ProcessMessages() in the TServiceApplication Date: Mon, 4 Oct 2004 08:52:19 -0700 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <416171a2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1096905122 68.69.17.41 (4 Oct 2004 08:52:02 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail