Article View: borland.public.delphi.language.objectpascal
Article #32527Re: Application.OnIdle in a DLL
From: Brendan Bosman
Date: Fri, 22 Nov 2002 09:37
Date: Fri, 22 Nov 2002 09:37
56 lines
2444 bytes
2444 bytes
Follow up Question: When using a DLL, with forms, an Application object is created, with a handle set to 0. Will it not be better to, by some way in the application, connect the Dll's Application object to the EXE's application object? I know there is risks involved, especially when unloading the DLL and with the application.Handle assigned. Regards Brendan Bosman "Peter Below (TeamB)" <100113.1101@compuXXserve.com> wrote in message news:VA.00009652.00748f96@antispam.compuserve.com... > In article <3ddca5bf$1@newsgroups.borland.com>, Jakob Lanstorp wrote: > > I am porting some code from a exe to a dll. The OnIdle event does not trigger, > > as in the source from the exe. Only when a dialog is active. Done is set to > > false in the event handler. I need to redraw a windows when app is idle. > > Simply use a Ttimers OnTimer event. Those have a low priority, so if the user is furiously busy > hacking away at the keyboard your routine may be called at longer than expected > intervals. A word of warning: do *not* call Application.ProcessMessages from the > OnTimer handler! That can cause reentrance problems if your code takes longer than the > timer interval to execute. > > > -- > Peter Below (TeamB) > Use the newsgroup archives : > http://www.mers.com/searchsite.html > http://www.tamaracka.com/search.htm > http://groups.google.com > http://www.prolix.be > >
Technical Details
Message-ID:
<3dddfb43@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!iad-peer.news.verio.net!news.verio.net!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mailReferences:
<3ddca5bf$1@newsgroups.borland.com> <VA.00009652.00748f96@antispam.compuserve.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109d30,8229e8d3e369eb23,start X-Google-Attributes: gid109d30,public X-Google-ArrivalTime: 2002-11-22 02:16:23 PST From: "Brendan Bosman" <brendan.bosman@syssol.ie> Newsgroups: borland.public.delphi.language.objectpascal References: <3ddca5bf$1@newsgroups.borland.com> <VA.00009652.00748f96@antispam.compuserve.com> Subject: Re: Application.OnIdle in a DLL Date: Fri, 22 Nov 2002 09:37:24 -0000 Lines: 58 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 213.105.178.230 Message-ID: <3dddfb43@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1037957955 213.105.178.230 (22 Nov 2002 01:39:15 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!iad-peer.news.verio.net!news.verio.net!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail