🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.language.objectpascal
Article #32422

Re: Application.OnIdle in a DLL

#32422
From: Peter Below (TeamB)
Date: Fri, 22 Nov 2002 18:43
23 lines
2253 bytes
In article <3dddfb43@newsgroups.borland.com>, Brendan Bosman wrote:
> 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?

The best way to do that is to build host app and DLL with run-time packages, 
they then use the *same* Application object. But there is still a problem, 
which is common to all events of "global" objects like Application: if more 
than one module tries to handle the OnIdle event you have a problem since only 
one can handle it. Using TApplicationevent objects would fix that, until some 
rogue code comes along and directly hooks an Application event (which 
disconnects all TApplicationEvents from this event). 

Using a timer is purely "local" and does not suffer from these problems.


--
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: <VA.00009660.008645eb@antispam.compuserve.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail
References: <3ddca5bf$1@newsgroups.borland.com> <VA.00009652.00748f96@antispam.compuserve.com> <3dddfb43@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109d30,8229e8d3e369eb23
X-Google-Attributes: gid109d30,public
X-Google-ArrivalTime: 2002-11-22 11:15:49 PST
Date: Fri, 22 Nov 2002 19:43:30 +0100
Newsgroups: borland.public.delphi.language.objectpascal
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: Virtual Access by Atlantic Coast PLC, http://www.atlantic-coast.com/va
Organization: TeamB
Message-ID: <VA.00009660.008645eb@antispam.compuserve.com>
Subject: Re: Application.OnIdle in a DLL
From: "Peter Below (TeamB)" <100113.1101@compuXXserve.com>
Reply-To: 100113.1101@compuXXserve.com
References: <3ddca5bf$1@newsgroups.borland.com> <VA.00009652.00748f96@antispam.compuserve.com> <3dddfb43@newsgroups.borland.com>
NNTP-Posting-Host: 62.226.189.68
X-Trace: newsgroups.borland.com 1037990599 62.226.189.68 (22 Nov 2002 10:43:19 -0800)
Lines: 25
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail