Thanks

I actually have this in place due to the fact that the initial call is 
for one parent (i.e maternal or paternal lineage), and subsequent 
(recursive) calls are for both parents; however I am reluctant to use 
the level limit as I do not know what a 'real' limit is.  With a 
breeding colony, the genealogy could go back many many generations, and 
while a limit for monkeys might be 10, a  limit for mice might be 100, 
how many generations do you limit fruit flies, or bacteria?

 
On Fri, 16 Nov 2018 08:46:04 +0100, Ingo Wolf via 4D_Tech wrote:
> In such cases I use a longint parameter "level" to the recursive 
> method. On first run this parameter is set to 1 and is incremented 
> with every level of recursion. I then test for an arbitrary "level" 
> (e.g. 1000) and abort the further recursion.
> 
> HTH
> Ingo Wolf
> 
> 
> [email protected] schrieb am Thu, 15 Nov 2018 12:00:01 -0800:
>> From: Chip Scheide <[email protected]>
>> To: 4D iNug Technical <[email protected]>
>> Subject: v13 - how to manage not enough stack space error
>> Message-ID: <[email protected]>
>> Content-Type: text/plain; charset=us-ascii
>> 
>> 
>> I have a recursive routine (genology) 
>> The routine is fine and works as expected - as long as the data is 
>> valid.
>> 
>> I was working in my test data, which I have apparently F*&^%ed and the 
>> routine recurses until I get a stack error and 4D crashes (stand alone).
>> 
>> How can I manage this so that I can exit the recursion gracefully with 
>> a useful(?) error message. Memory available measurements? free stack 
>> space?
>> I.E. The operation is being truncated due to inconsistent data.
>> 
>> Thanks 
>> Chip
> 
> 
> -- 
> ViELMAC Ingo Wolf
> Rheinhessenring 53A
> D 55597 Wöllstein
> Tel. +49 (0)6703 3070320
> Fax  +49 (0)6703 3070321
> e-mail [email protected]
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************
---------------
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to