🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

problem with TForm destructor?

#330
From: Gordon Fenton
Date: Mon, 09 Aug 2004 12:44
46 lines
1901 bytes
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: <411771ab@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f8e54,c855eac9f4c97bd6,start
X-Google-Attributes: gidf8e54,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Mon, 09 Aug 2004 07:44:31 -0500
From: Gordon Fenton <gordon@random.engmath.dal.ca>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.deployment
Subject: problem with TForm destructor?
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 211.31.114.59
Message-ID: <411771ab@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1092055467 211.31.114.59 (9 Aug 2004 05:44:27 -0700)
Lines: 47
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail