🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16013

Re: log off/ application terminate

#16013
From: Remy Lebeau (TeamB)
Date: Wed, 04 Jun 2003 03:53
20 lines
2126 bytes
"Duane Hebert" <spoo@flarn.com> wrote in message
news:3edd46b4$1@newsgroups.borland.com...

> Win2k Pro sp 3 on target box, sp 4 on my desktop.
> I tried the test thing with a simple SaveToFile() function
> from a string list and had the same results. It still looks
> to me that either the dtor isn't called or the logon
> happens before it's finished.

I've been able to reproduce the problem on my Win2K SP2 box.  Through much
testing, the easiest solution I can find, without resorting to intercepting
Window messages directly (which is the other solution) is to just use the
form's OnCloseQuery event instead of its destructor.

I find it VERY disturbing that the VCL and OS working together would not
allow such object destructors to be called correctly in the first place.


Gambit
Technical Details
Message-ID: <3edd6c8d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!feedwest.aleron.net!aleron.net!news.linkpendium.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3edccd80@newsgroups.borland.com> <3edcd422$1@newsgroups.borland.com> <3edcdbb6@newsgroups.borland.com> <3edcea6f$1@newsgroups.borland.com> <3edcf095$3@newsgroups.borland.com> <3edd00ef$2@newsgroups.borland.com> <3edd0644$2@newsgroups.borland.com> <3edd0c7e$1@newsgroups.borland.com> <3edd46b4$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,f4b8abe1a2fab575
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-03 20:52:46 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3edccd80@newsgroups.borland.com> <3edcd422$1@newsgroups.borland.com> <3edcdbb6@newsgroups.borland.com> <3edcea6f$1@newsgroups.borland.com> <3edcf095$3@newsgroups.borland.com> <3edd00ef$2@newsgroups.borland.com> <3edd0644$2@newsgroups.borland.com> <3edd0c7e$1@newsgroups.borland.com> <3edd46b4$1@newsgroups.borland.com>
Subject: Re: log off/ application terminate
Date: Tue, 3 Jun 2003 20:53:42 -0700
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3edd6c8d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054698637 207.175.226.26 (3 Jun 2003 20:50:37 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!feedwest.aleron.net!aleron.net!news.linkpendium.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail