🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Constructor Problem

#2361
From: Stefan Hoffmeister (TeamB)
Date: Fri, 04 Feb 2000 00:00
34 lines
1410 bytes
: Tobias Kloss <tkloss@gmx.de> wrote:

> Form2=new TForm2(this, 6);
...
>After starting and pushing the button, a "stack-overflow" error
>occured..

Indeed.

>It does work, when I replace the "int test" in the constructor to
>"unsigned int test" or another var type..

Indeed.

>With Version 3 the error was not there..
>
>Probably a compiler error!?

Nope. A user error. There is already a constructor with the signature

  (TComponent*, int)

(somewhere around TCustomForm or so) and hence your best resolution is not
to use that signature yourself. IOW, the fix you applied to your code is
fine.

-- 
General information:
  * Post to the right group - http://www.borland.com/newsgroups/
    * Do not cross- or multipost 
      * Research at http://www.mers.com/searchsite.html

Stefan Hoffmeister - http://www.econos.de/
TeamB - http://www.teamb.com/
Technical Details
Message-ID: <puhm9sgactuqv9226he0ptfo42f7of87rv@4ax.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <389B43DD.C570FD51@gmx.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10529a,53a8f1dc1c0fff26
X-Google-Attributes: gid10529a,public
From: "Stefan Hoffmeister (TeamB)" <Stefan.Hoffmeister@Econos.de>
Subject: Re: Constructor Problem
Date: 2000/02/04
Message-ID: <puhm9sgactuqv9226he0ptfo42f7of87rv@4ax.com>
X-Deja-AN: 581677342
Content-Transfer-Encoding: 7bit
References: <389B43DD.C570FD51@gmx.de>
Organization: .
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.cppbuilder.upgrade