🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.deployment
Article #332

Re: problem with TForm destructor?

#332
From: Berthold Stahn
Date: Sun, 22 Aug 2004 10:33
63 lines
2508 bytes
Hi ,
I've got the same problem some time ago.  Reading the documentation I founf
the following
simple way to terminate any VCL program:

 Application->Terminate();
The Application object is global to any program.
Just give it a try.


regards

Berthold Stahn

"Gordon Fenton" <gordon@random.engmath.dal.ca> schrieb im Newsbeitrag
news:411771ab@newsgroups.borland.com...
> Hi,
>
>     I've got a reasonably simple Form program. It's File->Exit menu item
> runs
>
> void __fastcall TForm1::FileExitExecute(TObject *Sender)
> {
>     exit(0);
> }
>
> and I get the following error
>
> ---------------------------
> Debugger Exception Notification
> ---------------------------
> Project myproject.exe raised exception class EInvalidPointer
> with message 'Invalid pointer operation'. Process stopped.
> Use Step or Run to continue.
> ---------------------------
> OK   Help
> ---------------------------
>
> The debugger reports that the error is in Forms.hpp (apparently) at the
> TForm destructor line;
>
> class PASCALIMPLEMENTATION TForm : public TCustomForm
> {
> typedef TCustomForm inherited;
> public:
> .
> .
> .
> __published:
> .
> .
> .
> public:
> .
> .
> #pragma option pop
> #pragma option push -w-inl
>     /* TCustomForm.Destroy */ inline __fastcall virtual ~TForm(void) { }
>
> };
>
> I doubt this is the real problem. Any suggestions on where to look?
>
Technical Details
Message-ID: <412876a0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <411771ab@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f8e54,c855eac9f4c97bd6
X-Google-Attributes: gidf8e54,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Berthold Stahn" <Berthold.Stahn@teleos-web.de>
From: "Berthold Stahn" <Berthold.Stahn@teleos-web.de>
Newsgroups: borland.public.cppbuilder.deployment
References: <411771ab@newsgroups.borland.com>
Subject: Re: problem with TForm destructor?
Date: Sun, 22 Aug 2004 12:33:59 +0200
Lines: 64
MIME-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 213.182.124.9
Message-ID: <412876a0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1093170848 213.182.124.9 (22 Aug 2004 03:34:08 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail