🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

overloading constructors in inherited forms

#2443
From: stuart kruse
Date: Mon, 06 Dec 1999 00:00
25 lines
1459 bytes
Hi,

I've hit a rather sticky problem.  I have a form, that is inherited from a
base form.  I have created multiple constructors for this inherited form.
Borland hits a stack overflow (at run time) whenever i use one of my
overloaded constructors to create a new version of this inherited form
(constructors that i have created that can accept paramters other than
'owner').

The set up that I have compiles OK, it just causes problems at run time.
The overloaded constructors have code in them, but the constructor of the
base form is empty.  The error seems to occur when the base form constructor
is called, before it ever reaches the code in the overloaded constructor of
my inherited form.

It seems to be having a problem where the base class is calling TForm before
its base class of TCustomForm, and its getting into some horrible recursive
error.

Any help greatly appreciated, this seems a pretty fundamental problem.

Best,
Stu Kruse
The Open University
s.a.kruse@open.ac.uk
Technical Details
Message-ID: <82go8a$5p416@forums.borland.com>
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,2b0adff5887013fc,start
X-Google-Attributes: gid10529a,public
From: "stuart kruse" <s.a.kruse@open.ac.uk>
Subject: overloading constructors in inherited forms
Date: 1999/12/06
Message-ID: <82go8a$5p416@forums.borland.com>
X-Deja-AN: 557314447
Organization: Open University
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.cppbuilder.upgrade