🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3605

Re: StackOverFlowError?

#3605
From: Rich Wilkman
Date: Tue, 25 Nov 1997 00:00
33 lines
1916 bytes
James:

I see that you have already been down that mobieus path <g>.

-Rich

James Rudnicki wrote:
> 
> >I get the error message  "StackOverFlowError" whenever I instantiate two
> >frames in each other.  What I mean is, I've got two frames: frame1 and
> >frame2.  I instantiate frame1 in frame2 and instantiate frame2 in
> >frame1.  This causes the error.  For some reason, it only lets me
> >instantiate one-way, but not both ways.
> 
> Ahh, the recursive stack death trick.  If you single step through the code
> by hand, you will have great fun and quickly see what is going on: the
> constructor for frame1 creates an instance of frame2 which creates an
> instance of frame1 which in turn creates its own instance of frame2 which in
> turn creates its own instance of frame1 which in turn creates its own
> instance of frame2 which in turn creates its own instance of frame1 which in
> turn creates its own instance of frame2 which in turn creates its own
> instance of frame1 which in turn creates its own instance of frame2 which in
> turn creates its own instance of frame1 which in turn creates its own
> instance of frame2 which in turn creates its own instance of frame1 which in
> turn creates its own instance of frame2 which in turn creates its own
> instance of frame1 which in turn creates its own instance of frame2 which in
> turn creates its own instance of frame1...
> 
> okay you get the idea.
> 
> bye,
> Jim.rudnicki@best.com
Technical Details
Message-ID: <347B04AE.BE2098A6@corp.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3477D230.C2031A40@gte.net> <65dtss$nb8@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,9108025ac09af366
X-Google-Attributes: gid1089d0,public
From: Rich Wilkman <rwilkman@corp.borland.com>
Subject: Re: StackOverFlowError?
Date: 1997/11/25
Message-ID: <347B04AE.BE2098A6@corp.borland.com>
X-Deja-AN: 292570790
References: <3477D230.C2031A40@gte.net> <65dtss$nb8@forums.borland.com>
Organization: None
Newsgroups: borland.public.jbuilder.java.api