🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.upgrade
Article #2360

Constructor Problem

#2360
From: Tobias Kloss
Date: Fri, 04 Feb 2000 00:00
22 lines
1107 bytes
This error occured after update from C++ Builder 3 to 4:
(Hope this is the right newsgroup for that)

I have created a new form with the constructor:
__fastcall TForm2::TForm2(TComponent* Owner,  int test)  : TForm(Owner)

With the main form I put this code to a button-click event:

 Form2=new TForm2(this, 6);
 Form2->ShowModal();
 delete Form2;

After starting and pushing the button, a "stack-overflow" error
occured..
It does work, when I replace the "int test" in the constructor to
"unsigned int test" or another var type..
With Version 3 the error was not there..

Probably a compiler error!?
Anybody can help me?

Tobias Kloss
Technical Details
Message-ID: <389B43DD.C570FD51@gmx.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10529a,53a8f1dc1c0fff26,start
X-Google-Attributes: gid10529a,public
From: Tobias Kloss <tkloss@gmx.de>
Subject: Constructor Problem
Date: 2000/02/04
Message-ID: <389B43DD.C570FD51@gmx.de>
X-Deja-AN: 581672699
Content-Transfer-Encoding: 7bit
Organization: JANKOESTER GmbH
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.cppbuilder.upgrade