🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: PostQuitMessage from a dll

#32451
From: Peter Below (TeamB)
Date: Sat, 23 Nov 2002 10:18
20 lines
1970 bytes
In article <3ddf0014@newsgroups.borland.com>, D.Pierce wrote:
> I'm writing a Delphi app which calls some functions in a C dll. In the dll a
> certain error condition causes the dll to call PostQuitMessage() to
> terminate the app. The code in the dll was originally part of a C program
> which I turned into a dll so I could continue to use it with Delphi.
> 
> I'm wondering, can a Delphi app be safely terminated this way or do I have a
> lot of rewriting of my dll code ahead of me?

If you look at TApplication.ProcessMessage in forms.pas you'll see that it 
handles WM_QUIT by setting FTerminated to true, so it is completely equivalent 
to calling Application.Terminate.

--
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.0000966d.003ca54a@antispam.compuserve.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!sn-xit-04!sn-xit-08!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail
References: <3ddf0014@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109d30,87aebbbc88b2ce59
X-Google-Attributes: gid109d30,public
X-Google-ArrivalTime: 2002-11-23 03:15:33 PST
Date: Sat, 23 Nov 2002 11:18:57 +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.0000966d.003ca54a@antispam.compuserve.com>
Subject: Re: PostQuitMessage from a dll
From: "Peter Below (TeamB)" <100113.1101@compuXXserve.com>
Reply-To: 100113.1101@compuXXserve.com
References: <3ddf0014@newsgroups.borland.com>
NNTP-Posting-Host: 172.177.2.54
X-Trace: newsgroups.borland.com 1038046726 172.177.2.54 (23 Nov 2002 02:18:46 -0800)
Lines: 22
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!sn-xit-04!sn-xit-08!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail