Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

I've noticed several design suggestions in your code.


devel / comp.lang.clipper.visual-objects / Re: KidStack size

SubjectAuthor
* Re: KidStack sizeGorazd Petrovič
`* Re: KidStack sizeJamal
 `* Re: KidStack sizeGorazd Petrovič
  `* Re: KidStack sizeJamal
   `* Re: KidStack sizeGorazd Petrovič
    `* Re: KidStack sizePete
     `- Re: KidStack sizeGorazd Petrovič

1
Re: KidStack size

<f650bb85-2960-46cf-b176-d67d47108818n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1355&group=comp.lang.clipper.visual-objects#1355

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:620a:25ce:b0:763:a36e:19bc with SMTP id y14-20020a05620a25ce00b00763a36e19bcmr3238qko.5.1688632075081;
Thu, 06 Jul 2023 01:27:55 -0700 (PDT)
X-Received: by 2002:a05:6a00:17a7:b0:668:85ba:7164 with SMTP id
s39-20020a056a0017a700b0066885ba7164mr1630170pfg.0.1688632074516; Thu, 06 Jul
2023 01:27:54 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Thu, 6 Jul 2023 01:27:53 -0700 (PDT)
In-Reply-To: <1192008035.766055.117120@k79g2000hse.googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=89.212.150.131; posting-account=L5SY7AoAAAAugrfaSpEyi1pJiVJZpjAo
NNTP-Posting-Host: 89.212.150.131
References: <1192008035.766055.117120@k79g2000hse.googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f650bb85-2960-46cf-b176-d67d47108818n@googlegroups.com>
Subject: Re: KidStack size
From: grzd.petrovic@gmail.com (Gorazd Petrovič)
Injection-Date: Thu, 06 Jul 2023 08:27:55 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2088
 by: Gorazd Petrovič - Thu, 6 Jul 2023 08:27 UTC

Peter hi,

I know it has been a very long since, but maybe you still remember.
I have the same Kidstack limit problem: while I am calling function recursively, it throws error at practically the same number of calls 663 and with almost the same MEMORY_STACKKID value 674.

Do you maybe rememer how you solved your problem?

Best regards, Gorazd

On Wednesday, October 10, 2007 at 11:20:35 AM UTC+2, Peter Gargos wrote:
> Hi all,
> I have my own quick sort routine with recursive calls.
> Sorting 1000 or higher items cause "Kid stack size limit exceeded".
> Routine crash afther 665 self calls, MEMORY_STACKKID show 675.
> SetKidStackSize has no any effect. I you set StackSize to 16MB
> ( default is 8kB ),
> before crash KidStackFree func report 16769116 bytes free !!.
> Where is problem ? ( VO28+SP1 )
> Thanks,
> Peter Gargos
> Softcomp Technology

Re: KidStack size

<u886ft$17p2k$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1356&group=comp.lang.clipper.visual-objects#1356

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: vodotnet@gmail.com (Jamal)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: KidStack size
Date: Fri, 7 Jul 2023 01:06:06 -0400
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <u886ft$17p2k$1@dont-email.me>
References: <1192008035.766055.117120@k79g2000hse.googlegroups.com>
<f650bb85-2960-46cf-b176-d67d47108818n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 7 Jul 2023 05:06:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="986324bf2960856dde85d3355594a617";
logging-data="1303636"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+yBXn/puI9jBhP7TVAOyajMrswfUQqMe8="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:s92+z5iBbBRzlwqBP+1shYO0438=
Content-Language: en-US
In-Reply-To: <f650bb85-2960-46cf-b176-d67d47108818n@googlegroups.com>
 by: Jamal - Fri, 7 Jul 2023 05:06 UTC

Try the following in your program's Start method:

SetMaxRegisteredKids( 100000 ) // default 16000
SetMaxRegisteredAxitMethods( 100000 )

Do the above solve your problem?

Jamal

On 7/6/2023 4:27 AM, Gorazd Petrovič wrote:
> Peter hi,
>
> I know it has been a very long since, but maybe you still remember.
> I have the same Kidstack limit problem: while I am calling function recursively, it throws error at practically the same number of calls 663 and with almost the same MEMORY_STACKKID value 674.
>
> Do you maybe rememer how you solved your problem?
>
> Best regards, Gorazd
>
> On Wednesday, October 10, 2007 at 11:20:35 AM UTC+2, Peter Gargos wrote:
>> Hi all,
>> I have my own quick sort routine with recursive calls.
>> Sorting 1000 or higher items cause "Kid stack size limit exceeded".
>> Routine crash afther 665 self calls, MEMORY_STACKKID show 675.
>> SetKidStackSize has no any effect. I you set StackSize to 16MB
>> ( default is 8kB ),
>> before crash KidStackFree func report 16769116 bytes free !!.
>> Where is problem ? ( VO28+SP1 )
>> Thanks,
>> Peter Gargos
>> Softcomp Technology

Re: KidStack size

<d75c38bd-0ea5-4b6f-a954-22a5c04971d4n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1357&group=comp.lang.clipper.visual-objects#1357

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:620a:28d2:b0:765:ada6:5733 with SMTP id l18-20020a05620a28d200b00765ada65733mr10328qkp.10.1688716975709;
Fri, 07 Jul 2023 01:02:55 -0700 (PDT)
X-Received: by 2002:aa7:8890:0:b0:674:1663:1270 with SMTP id
z16-20020aa78890000000b0067416631270mr5847779pfe.4.1688716975431; Fri, 07 Jul
2023 01:02:55 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Fri, 7 Jul 2023 01:02:54 -0700 (PDT)
In-Reply-To: <u886ft$17p2k$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=89.212.150.131; posting-account=L5SY7AoAAAAugrfaSpEyi1pJiVJZpjAo
NNTP-Posting-Host: 89.212.150.131
References: <1192008035.766055.117120@k79g2000hse.googlegroups.com>
<f650bb85-2960-46cf-b176-d67d47108818n@googlegroups.com> <u886ft$17p2k$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d75c38bd-0ea5-4b6f-a954-22a5c04971d4n@googlegroups.com>
Subject: Re: KidStack size
From: grzd.petrovic@gmail.com (Gorazd Petrovič)
Injection-Date: Fri, 07 Jul 2023 08:02:55 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3560
 by: Gorazd Petrovič - Fri, 7 Jul 2023 08:02 UTC

Hi Jamal,
Unfortunately this does not help. When error occurs the following resources are reported:
MEMORY_REGISTERAXIT = 67 (out of max 100000 set by SetMaxRegisteredAxitMethods)
MEMORY_REGISTEREDKID = 165 (out of max 100000 set by SetMaxRegisteredKids)
MEMORY_STACK_FREE = 742044, MEMORY_STACK_SIZE 921600
MEMORY_STACKKID = 676 (practically the same number as in Peter Gargos case)
The level of recursion is 663 (again practically the same number as in Peter Gargos case).
The error says "Kid Stack Size limit exceeded". This reads as a limit in Kid Stack Size which is obviously 676, but I do not know where to rise that limit. In help there is a function SetKidStackSpace() which could be used, but does not work (compiler throws error "bad function call").
It seems that I need a function like something SetMaxKidStackSize() :-)
Or is there maybe some registry setting available?

Gorazd

On Friday, July 7, 2023 at 7:06:08 AM UTC+2, Jamal wrote:
> Try the following in your program's Start method:
>
> SetMaxRegisteredKids( 100000 ) // default 16000
> SetMaxRegisteredAxitMethods( 100000 )
>
> Do the above solve your problem?
>
> Jamal
> On 7/6/2023 4:27 AM, Gorazd Petrovič wrote:
> > Peter hi,
> >
> > I know it has been a very long since, but maybe you still remember.
> > I have the same Kidstack limit problem: while I am calling function recursively, it throws error at practically the same number of calls 663 and with almost the same MEMORY_STACKKID value 674.
> >
> > Do you maybe rememer how you solved your problem?
> >
> > Best regards, Gorazd
> >
> > On Wednesday, October 10, 2007 at 11:20:35 AM UTC+2, Peter Gargos wrote:
> >> Hi all,
> >> I have my own quick sort routine with recursive calls.
> >> Sorting 1000 or higher items cause "Kid stack size limit exceeded".
> >> Routine crash afther 665 self calls, MEMORY_STACKKID show 675.
> >> SetKidStackSize has no any effect. I you set StackSize to 16MB
> >> ( default is 8kB ),
> >> before crash KidStackFree func report 16769116 bytes free !!.
> >> Where is problem ? ( VO28+SP1 )
> >> Thanks,
> >> Peter Gargos
> >> Softcomp Technology

Re: KidStack size

<u89oen$1dptt$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1358&group=comp.lang.clipper.visual-objects#1358

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: vodotnet@gmail.com (Jamal)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: KidStack size
Date: Fri, 7 Jul 2023 15:18:49 -0400
Organization: A noiseless patient Spider
Lines: 57
Message-ID: <u89oen$1dptt$1@dont-email.me>
References: <1192008035.766055.117120@k79g2000hse.googlegroups.com>
<f650bb85-2960-46cf-b176-d67d47108818n@googlegroups.com>
<u886ft$17p2k$1@dont-email.me>
<d75c38bd-0ea5-4b6f-a954-22a5c04971d4n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 7 Jul 2023 19:18:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="986324bf2960856dde85d3355594a617";
logging-data="1501117"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+5b+lgkY+UVnLqBTR36nraQHRay92FN4Q="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:EoyJJK1bT+mtGgJeTFaDFjgbtEg=
In-Reply-To: <d75c38bd-0ea5-4b6f-a954-22a5c04971d4n@googlegroups.com>
Content-Language: en-US
 by: Jamal - Fri, 7 Jul 2023 19:18 UTC

Can post the code that replicates the issue or you can head to
https://xsharp.eu and post your question to the forum where you may get
an answer from Robert.

On 7/7/2023 4:02 AM, Gorazd Petrovič wrote:

> Hi Jamal,
> Unfortunately this does not help. When error occurs the following resources are reported:
> MEMORY_REGISTERAXIT = 67 (out of max 100000 set by SetMaxRegisteredAxitMethods)
> MEMORY_REGISTEREDKID = 165 (out of max 100000 set by SetMaxRegisteredKids)
> MEMORY_STACK_FREE = 742044, MEMORY_STACK_SIZE 921600
> MEMORY_STACKKID = 676 (practically the same number as in Peter Gargos case)
> The level of recursion is 663 (again practically the same number as in Peter Gargos case).
> The error says "Kid Stack Size limit exceeded". This reads as a limit in Kid Stack Size which is obviously 676, but I do not know where to rise that limit. In help there is a function SetKidStackSpace() which could be used, but does not work (compiler throws error "bad function call").
> It seems that I need a function like something SetMaxKidStackSize() :-)
> Or is there maybe some registry setting available?
>
> Gorazd
>
>
>
> On Friday, July 7, 2023 at 7:06:08 AM UTC+2, Jamal wrote:
>> Try the following in your program's Start method:
>>
>> SetMaxRegisteredKids( 100000 ) // default 16000
>> SetMaxRegisteredAxitMethods( 100000 )
>>
>> Do the above solve your problem?
>>
>> Jamal
>> On 7/6/2023 4:27 AM, Gorazd Petrovič wrote:
>>> Peter hi,
>>>
>>> I know it has been a very long since, but maybe you still remember.
>>> I have the same Kidstack limit problem: while I am calling function recursively, it throws error at practically the same number of calls 663 and with almost the same MEMORY_STACKKID value 674.
>>>
>>> Do you maybe rememer how you solved your problem?
>>>
>>> Best regards, Gorazd
>>>
>>> On Wednesday, October 10, 2007 at 11:20:35 AM UTC+2, Peter Gargos wrote:
>>>> Hi all,
>>>> I have my own quick sort routine with recursive calls.
>>>> Sorting 1000 or higher items cause "Kid stack size limit exceeded".
>>>> Routine crash afther 665 self calls, MEMORY_STACKKID show 675.
>>>> SetKidStackSize has no any effect. I you set StackSize to 16MB
>>>> ( default is 8kB ),
>>>> before crash KidStackFree func report 16769116 bytes free !!.
>>>> Where is problem ? ( VO28+SP1 )
>>>> Thanks,
>>>> Peter Gargos
>>>> Softcomp Technology

Re: KidStack size

<f589f078-3b71-4598-b846-077a7ee03593n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1359&group=comp.lang.clipper.visual-objects#1359

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:ad4:55cf:0:b0:635:b679:a365 with SMTP id bt15-20020ad455cf000000b00635b679a365mr21071qvb.0.1688841234087;
Sat, 08 Jul 2023 11:33:54 -0700 (PDT)
X-Received: by 2002:a05:6a00:1a94:b0:676:ba7f:7906 with SMTP id
e20-20020a056a001a9400b00676ba7f7906mr12358587pfv.3.1688841233726; Sat, 08
Jul 2023 11:33:53 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Sat, 8 Jul 2023 11:33:53 -0700 (PDT)
In-Reply-To: <u89oen$1dptt$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=89.212.150.131; posting-account=L5SY7AoAAAAugrfaSpEyi1pJiVJZpjAo
NNTP-Posting-Host: 89.212.150.131
References: <1192008035.766055.117120@k79g2000hse.googlegroups.com>
<f650bb85-2960-46cf-b176-d67d47108818n@googlegroups.com> <u886ft$17p2k$1@dont-email.me>
<d75c38bd-0ea5-4b6f-a954-22a5c04971d4n@googlegroups.com> <u89oen$1dptt$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f589f078-3b71-4598-b846-077a7ee03593n@googlegroups.com>
Subject: Re: KidStack size
From: grzd.petrovic@gmail.com (Gorazd Petrovič)
Injection-Date: Sat, 08 Jul 2023 18:33:54 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4349
 by: Gorazd Petrovič - Sat, 8 Jul 2023 18:33 UTC

Hi Jamal,
thanks for your help. I guess I will first try with the basic recursion function and then slowly adding more functionalties. This way I hope I will be able to find what the problem is.

On Friday, July 7, 2023 at 9:18:50 PM UTC+2, Jamal wrote:
> Can post the code that replicates the issue or you can head to
> https://xsharp.eu and post your question to the forum where you may get
> an answer from Robert.
> On 7/7/2023 4:02 AM, Gorazd Petrovič wrote:
>
> > Hi Jamal,
> > Unfortunately this does not help. When error occurs the following resources are reported:
> > MEMORY_REGISTERAXIT = 67 (out of max 100000 set by SetMaxRegisteredAxitMethods)
> > MEMORY_REGISTEREDKID = 165 (out of max 100000 set by SetMaxRegisteredKids)
> > MEMORY_STACK_FREE = 742044, MEMORY_STACK_SIZE 921600
> > MEMORY_STACKKID = 676 (practically the same number as in Peter Gargos case)
> > The level of recursion is 663 (again practically the same number as in Peter Gargos case).
> > The error says "Kid Stack Size limit exceeded". This reads as a limit in Kid Stack Size which is obviously 676, but I do not know where to rise that limit. In help there is a function SetKidStackSpace() which could be used, but does not work (compiler throws error "bad function call").
> > It seems that I need a function like something SetMaxKidStackSize() :-)
> > Or is there maybe some registry setting available?
> >
> > Gorazd
> >
> >
> >
> > On Friday, July 7, 2023 at 7:06:08 AM UTC+2, Jamal wrote:
> >> Try the following in your program's Start method:
> >>
> >> SetMaxRegisteredKids( 100000 ) // default 16000
> >> SetMaxRegisteredAxitMethods( 100000 )
> >>
> >> Do the above solve your problem?
> >>
> >> Jamal
> >> On 7/6/2023 4:27 AM, Gorazd Petrovič wrote:
> >>> Peter hi,
> >>>
> >>> I know it has been a very long since, but maybe you still remember.
> >>> I have the same Kidstack limit problem: while I am calling function recursively, it throws error at practically the same number of calls 663 and with almost the same MEMORY_STACKKID value 674.
> >>>
> >>> Do you maybe rememer how you solved your problem?
> >>>
> >>> Best regards, Gorazd
> >>>
> >>> On Wednesday, October 10, 2007 at 11:20:35 AM UTC+2, Peter Gargos wrote:
> >>>> Hi all,
> >>>> I have my own quick sort routine with recursive calls.
> >>>> Sorting 1000 or higher items cause "Kid stack size limit exceeded".
> >>>> Routine crash afther 665 self calls, MEMORY_STACKKID show 675.
> >>>> SetKidStackSize has no any effect. I you set StackSize to 16MB
> >>>> ( default is 8kB ),
> >>>> before crash KidStackFree func report 16769116 bytes free !!.
> >>>> Where is problem ? ( VO28+SP1 )
> >>>> Thanks,
> >>>> Peter Gargos
> >>>> Softcomp Technology

Re: KidStack size

<78c42665-3c7c-4f8a-8720-0fd9ed77c28bn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1362&group=comp.lang.clipper.visual-objects#1362

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:620a:4156:b0:762:323e:b3a1 with SMTP id k22-20020a05620a415600b00762323eb3a1mr7548qko.12.1689705004338;
Tue, 18 Jul 2023 11:30:04 -0700 (PDT)
X-Received: by 2002:a05:6870:1729:b0:1b3:d79c:f288 with SMTP id
h41-20020a056870172900b001b3d79cf288mr68809oae.3.1689705003914; Tue, 18 Jul
2023 11:30:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.niel.me!glou.org!news.glou.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Tue, 18 Jul 2023 11:30:03 -0700 (PDT)
In-Reply-To: <f589f078-3b71-4598-b846-077a7ee03593n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=85.71.206.50; posting-account=6CfZ1wkAAAByR94zF3GMkdRNgo4B4hM5
NNTP-Posting-Host: 85.71.206.50
References: <1192008035.766055.117120@k79g2000hse.googlegroups.com>
<f650bb85-2960-46cf-b176-d67d47108818n@googlegroups.com> <u886ft$17p2k$1@dont-email.me>
<d75c38bd-0ea5-4b6f-a954-22a5c04971d4n@googlegroups.com> <u89oen$1dptt$1@dont-email.me>
<f589f078-3b71-4598-b846-077a7ee03593n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <78c42665-3c7c-4f8a-8720-0fd9ed77c28bn@googlegroups.com>
Subject: Re: KidStack size
From: pgargos@atlas.cz (Pete)
Injection-Date: Tue, 18 Jul 2023 18:30:04 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Pete - Tue, 18 Jul 2023 18:30 UTC

Dne sobota 8. července 2023 v 20:33:55 UTC+2 uživatel Gorazd Petrovič napsal:
> Hi Jamal,
> thanks for your help. I guess I will first try with the basic recursion function and then slowly adding more functionalties. This way I hope I will be able to find what the problem is.
> On Friday, July 7, 2023 at 9:18:50 PM UTC+2, Jamal wrote:
> > Can post the code that replicates the issue or you can head to
> > https://xsharp.eu and post your question to the forum where you may get
> > an answer from Robert.
> > On 7/7/2023 4:02 AM, Gorazd Petrovič wrote:
> >
> > > Hi Jamal,
> > > Unfortunately this does not help. When error occurs the following resources are reported:
> > > MEMORY_REGISTERAXIT = 67 (out of max 100000 set by SetMaxRegisteredAxitMethods)
> > > MEMORY_REGISTEREDKID = 165 (out of max 100000 set by SetMaxRegisteredKids)
> > > MEMORY_STACK_FREE = 742044, MEMORY_STACK_SIZE 921600
> > > MEMORY_STACKKID = 676 (practically the same number as in Peter Gargos case)
> > > The level of recursion is 663 (again practically the same number as in Peter Gargos case).
> > > The error says "Kid Stack Size limit exceeded". This reads as a limit in Kid Stack Size which is obviously 676, but I do not know where to rise that limit. In help there is a function SetKidStackSpace() which could be used, but does not work (compiler throws error "bad function call").
> > > It seems that I need a function like something SetMaxKidStackSize() :-)
> > > Or is there maybe some registry setting available?
> > >
> > > Gorazd
> > >
> > >
> > >
> > > On Friday, July 7, 2023 at 7:06:08 AM UTC+2, Jamal wrote:
> > >> Try the following in your program's Start method:
> > >>
> > >> SetMaxRegisteredKids( 100000 ) // default 16000
> > >> SetMaxRegisteredAxitMethods( 100000 )
> > >>
> > >> Do the above solve your problem?
> > >>
> > >> Jamal
> > >> On 7/6/2023 4:27 AM, Gorazd Petrovič wrote:
> > >>> Peter hi,
> > >>>
> > >>> I know it has been a very long since, but maybe you still remember.
> > >>> I have the same Kidstack limit problem: while I am calling function recursively, it throws error at practically the same number of calls 663 and with almost the same MEMORY_STACKKID value 674.
> > >>>
> > >>> Do you maybe rememer how you solved your problem?
> > >>>
> > >>> Best regards, Gorazd
> > >>>
> > >>> On Wednesday, October 10, 2007 at 11:20:35 AM UTC+2, Peter Gargos wrote:
> > >>>> Hi all,
> > >>>> I have my own quick sort routine with recursive calls.
> > >>>> Sorting 1000 or higher items cause "Kid stack size limit exceeded"..
> > >>>> Routine crash afther 665 self calls, MEMORY_STACKKID show 675.
> > >>>> SetKidStackSize has no any effect. I you set StackSize to 16MB
> > >>>> ( default is 8kB ),
> > >>>> before crash KidStackFree func report 16769116 bytes free !!.
> > >>>> Where is problem ? ( VO28+SP1 )
> > >>>> Thanks,
> > >>>> Peter Gargos
> > >>>> Softcomp Technology

Hi Boys afther 16 years,
I forgot QuickSort Routine and replace with Selection Sort. Slightly slower, but in my case ( several thousand items )
there is no problem.

Re: KidStack size

<a4453bc8-6ad7-40fc-8b98-66abeb14d591n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1364&group=comp.lang.clipper.visual-objects#1364

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:620a:4411:b0:762:55da:9784 with SMTP id v17-20020a05620a441100b0076255da9784mr90140qkp.5.1689754742309;
Wed, 19 Jul 2023 01:19:02 -0700 (PDT)
X-Received: by 2002:a81:d447:0:b0:577:3b0c:5b85 with SMTP id
g7-20020a81d447000000b005773b0c5b85mr30231ywl.0.1689754741835; Wed, 19 Jul
2023 01:19:01 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Wed, 19 Jul 2023 01:19:01 -0700 (PDT)
In-Reply-To: <78c42665-3c7c-4f8a-8720-0fd9ed77c28bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=89.212.150.131; posting-account=L5SY7AoAAAAugrfaSpEyi1pJiVJZpjAo
NNTP-Posting-Host: 89.212.150.131
References: <1192008035.766055.117120@k79g2000hse.googlegroups.com>
<f650bb85-2960-46cf-b176-d67d47108818n@googlegroups.com> <u886ft$17p2k$1@dont-email.me>
<d75c38bd-0ea5-4b6f-a954-22a5c04971d4n@googlegroups.com> <u89oen$1dptt$1@dont-email.me>
<f589f078-3b71-4598-b846-077a7ee03593n@googlegroups.com> <78c42665-3c7c-4f8a-8720-0fd9ed77c28bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a4453bc8-6ad7-40fc-8b98-66abeb14d591n@googlegroups.com>
Subject: Re: KidStack size
From: grzd.petrovic@gmail.com (Gorazd Petrovič)
Injection-Date: Wed, 19 Jul 2023 08:19:02 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Gorazd Petrovič - Wed, 19 Jul 2023 08:19 UTC

I did a simple test and opened a new topic: https://groups.google.com/g/comp.lang.clipper.visual-objects/c/rPza_0Oex2M/m/gV5e6CemAgAJ.

So, having problem with "Kid Stack Size Limit Exceeded" I did a simple test.. I wrote a function Recursion_test() which I called recursively. The function gets called 664 times and then throws error "Kid Stack Size Limit Exceeded".
Given the fact that there are no additional objects instanciated and no additional variables initialized I expected the error would be corrected by assigning proper value to SetKidStackSize(), but this was not the case. It seems there is another limitation set in CAVO which I do not know how to remove.

This is the function:
FUNCTION Recursion_test(nLevel)
Default(@nLevel,1)
nLevel:=nLevel+1
Recursion_test(nLevel)
RETURN

And these are values when error occurs:
Memory(MEMORY_STACKKID) 678, SetKidStackSize(0) is set to 8192
Memory(MEMORY_REGISTERKID) 65, SetMaxRegisteredKids(0) is set to 10000
Memory(MEMORY_REGISTERAXIT) 222, SetMaxRegisteredAxitMethods(0) is set to 64000
MEMORY_STACK_SIZE 1069056, MEMORY_STACK_FREE 1035688
MEMORY_REGISTEREXIT_COUNT 3

As you can see none of the parameters is over the limit.

On Tuesday, July 18, 2023 at 8:30:05 PM UTC+2, Pete wrote:
> Dne sobota 8. července 2023 v 20:33:55 UTC+2 uživatel Gorazd Petrovič napsal:
> > Hi Jamal,
> > thanks for your help. I guess I will first try with the basic recursion function and then slowly adding more functionalties. This way I hope I will be able to find what the problem is.
> > On Friday, July 7, 2023 at 9:18:50 PM UTC+2, Jamal wrote:
> > > Can post the code that replicates the issue or you can head to
> > > https://xsharp.eu and post your question to the forum where you may get
> > > an answer from Robert.
> > > On 7/7/2023 4:02 AM, Gorazd Petrovič wrote:
> > >
> > > > Hi Jamal,
> > > > Unfortunately this does not help. When error occurs the following resources are reported:
> > > > MEMORY_REGISTERAXIT = 67 (out of max 100000 set by SetMaxRegisteredAxitMethods)
> > > > MEMORY_REGISTEREDKID = 165 (out of max 100000 set by SetMaxRegisteredKids)
> > > > MEMORY_STACK_FREE = 742044, MEMORY_STACK_SIZE 921600
> > > > MEMORY_STACKKID = 676 (practically the same number as in Peter Gargos case)
> > > > The level of recursion is 663 (again practically the same number as in Peter Gargos case).
> > > > The error says "Kid Stack Size limit exceeded". This reads as a limit in Kid Stack Size which is obviously 676, but I do not know where to rise that limit. In help there is a function SetKidStackSpace() which could be used, but does not work (compiler throws error "bad function call").
> > > > It seems that I need a function like something SetMaxKidStackSize() :-)
> > > > Or is there maybe some registry setting available?
> > > >
> > > > Gorazd
> > > >
> > > >
> > > >
> > > > On Friday, July 7, 2023 at 7:06:08 AM UTC+2, Jamal wrote:
> > > >> Try the following in your program's Start method:
> > > >>
> > > >> SetMaxRegisteredKids( 100000 ) // default 16000
> > > >> SetMaxRegisteredAxitMethods( 100000 )
> > > >>
> > > >> Do the above solve your problem?
> > > >>
> > > >> Jamal
> > > >> On 7/6/2023 4:27 AM, Gorazd Petrovič wrote:
> > > >>> Peter hi,
> > > >>>
> > > >>> I know it has been a very long since, but maybe you still remember.
> > > >>> I have the same Kidstack limit problem: while I am calling function recursively, it throws error at practically the same number of calls 663 and with almost the same MEMORY_STACKKID value 674.
> > > >>>
> > > >>> Do you maybe rememer how you solved your problem?
> > > >>>
> > > >>> Best regards, Gorazd
> > > >>>
> > > >>> On Wednesday, October 10, 2007 at 11:20:35 AM UTC+2, Peter Gargos wrote:
> > > >>>> Hi all,
> > > >>>> I have my own quick sort routine with recursive calls.
> > > >>>> Sorting 1000 or higher items cause "Kid stack size limit exceeded".
> > > >>>> Routine crash afther 665 self calls, MEMORY_STACKKID show 675.
> > > >>>> SetKidStackSize has no any effect. I you set StackSize to 16MB
> > > >>>> ( default is 8kB ),
> > > >>>> before crash KidStackFree func report 16769116 bytes free !!.
> > > >>>> Where is problem ? ( VO28+SP1 )
> > > >>>> Thanks,
> > > >>>> Peter Gargos
> > > >>>> Softcomp Technology
> Hi Boys afther 16 years,
> I forgot QuickSort Routine and replace with Selection Sort. Slightly slower, but in my case ( several thousand items )
> there is no problem.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor