i tried that - sleep actualy does not process the applications message queue so after the sleep everything is as it is; there is a background process running on the same app that fires an event when something happens and it relys on the message queue...
ive also found out that using the forms method and calling application.processmessages has the desired effect - as for side effects i'm yet to find out :) thanks anyway - more suggestions welcome j Smith David G (Finance) wrote: > > > Maybe this would work: > > while (condition) do > Sleep( 100) > > -----Original Message----- > From: [email protected] <mailto:delphi-en%40yahoogroups.com> > [mailto:[email protected] <mailto:delphi-en%40yahoogroups.com>] On > Behalf Of Jangita > Sent: Friday, June 23, 2006 6:32 AM > To: [email protected] <mailto:delphi-en%40yahoogroups.com> > Subject: [delphi-en] Application.Processmessages in a service > > Hi all > > Is there an alternative to application.processmessages in a service? i > need some message queues processed as im waiting for a result so in a > normal app id do > > while (condition) do > application.processmessages; > > but the application variable in a service is of type tserviceapplication > which doesn't have the processmessages procedure. > > any ideas? > > j > > > ----------------------------------------------------- > Home page: http://groups.yahoo.com/group/delphi-en/ > <http://groups.yahoo.com/group/delphi-en/> > To unsubscribe: [EMAIL PROTECTED] > <mailto:delphi-en-unsubscribe%40yahoogroups.com> > Yahoo! Groups Links > > ------------------------ Yahoo! Groups Sponsor --------------------~--> See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/i7folB/TM --------------------------------------------------------------------~-> ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

