On Friday 15 January 2016 17:19:28 Julio Jiménez wrote: > 2016-01-15 14:35 GMT+01:00 Martin Schreiber <[email protected]>: > > On Friday 15 January 2016 14:08:46 Martin Schreiber wrote: > > > I'll add an end event which runs in main thread. > > > > git master b1033eaabd62d029ee30c0158f2b8af6b7286382 has > > tfbservice.onasyncendmain. > > " > > procedure tmainfo.endmain(const sender: tfbservice; const aborted: > > Boolean); > > begin > > if aborted then begin > > showmessage('Aborted'); > > end > > else begin > > showmessage('Finished'); > > end; > > end; > > " > > Working but... a little issue. > > Event if fired twice so it shows Aborted dialog and then it shows Finished > dialog (the two windows). And of course.. the service continues executing > in the server as I commented in my last message.
I don't understand. First onasyncend is called in service thread context, later onasyncendmain in main context. Or do you mean something other? Martin ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 _______________________________________________ mseide-msegui-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

