Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #13860

Re: KidStack size

From Jamal <vodotnet@gmail.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: KidStack size
Date 2023-07-07 15:18 -0400
Organization A noiseless patient Spider
Message-ID <u89oen$1dptt$1@dont-email.me> (permalink)
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>

Show all headers | View raw


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

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: KidStack size Gorazd Petrovič <grzd.petrovic@gmail.com> - 2023-07-06 01:27 -0700
  Re: KidStack size Jamal <vodotnet@gmail.com> - 2023-07-07 01:06 -0400
    Re: KidStack size Gorazd Petrovič <grzd.petrovic@gmail.com> - 2023-07-07 01:02 -0700
      Re: KidStack size Jamal <vodotnet@gmail.com> - 2023-07-07 15:18 -0400
        Re: KidStack size Gorazd Petrovič <grzd.petrovic@gmail.com> - 2023-07-08 11:33 -0700
          Re: KidStack size Pete <pgargos@atlas.cz> - 2023-07-18 11:30 -0700
            Re: KidStack size Gorazd Petrovič <grzd.petrovic@gmail.com> - 2023-07-19 01:19 -0700

csiph-web