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


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

Re: Kid Stack Size Limit Exceeded

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Wolfgang Riedmann" <wriedmann@gmail.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Kid Stack Size Limit Exceeded
Date Tue, 1 Aug 2023 10:41:42 +0200
Lines 96
Message-ID <kiruq6Fff5iU1@mid.individual.net> (permalink)
References <5938a7a7-256c-4055-8ae3-038e6d601d77n@googlegroups.com> <u9mfvv$oojc$1@dont-email.me> <7949071d-2a2c-4a70-8ced-b88ae773699cn@googlegroups.com> <kicumtF1j95U1@mid.individual.net> <u9vcb8$25gd4$1@dont-email.me> <769a9ea7-8c1f-4d2f-8046-ca23a8de049dn@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Trace individual.net BvpcBhdbybunhEjTwem8XQu1XvELEpXircjdqeRMxVuNH2fLY=
Cancel-Lock sha1:WbjGE591bC8kj1tdp/dpXXLPHfs= sha256:oMJPuyC2mT4tHfiE6KPm139JWtb1HgE89zB21oShJfo=
User-Agent XanaNews/1.18.1.6
Xref csiph.com comp.lang.clipper.visual-objects:13886

Show key headers only | View raw


Hi Gorazd,

it is really easy to move VO code to X# and use it as COM DLL in VO.

I'm doing similar things all the time (mostly interfaces to web
services or databases).
If needed, I can point you to samples and/or documentation.

Wolfgang

Gorazd Petrovič wrote:

> Jamal,
> The beauty of recursion is simplicity for solving problems when you
> do not know in advance how many iterations will be necessary to go
> through all levels of hierarchy of the given structure. I am afraid I
> do not know how to solve my problem with FOR or DO WHILE loop.
> 15.000 in .NET would definitely solve my problem. Maybe writting DLL
> in .NET would be the way to go? The problem is that going this way I
> would have to migrate pretty big chunk of my code from VO to .NET.
> Gorazd On Friday, July 28, 2023 at 5:23:22 AM UTC+2, Jamal wrote:
> > Wolfgang, just for fun, I tested in X# and C# console app. 
> > 
> > NET Framework 4.8 (x64 and x86), crashed at 15082 
> > 
> > I tested the console in Net Core 7.0 and 8.0 Preview and it crashed
> > at 23895. This result indicates that NET Core is really very
> > efficient.
> > 
> > 
> > So, even the limit is much higher in .NET, no one should be doing
> > this.
> > 
> > Gorazd, I suggest that you avoid recursive functions and instead
> > use a FOR Loop and handle your requirement in a separate function.
> > VO just cannot handle deep recursions! 
> > 
> > Jamal
> > On 7/26/2023 12:07 PM, Wolfgang Riedmann wrote: 
> > > For all that are reading here: Robert has answered that this is
> > > not possible to solve because the number of recursions is limited
> > > (is limited also in X#, but the limit is a bit larger) 
> > > 
> > 
> > > Wolfgang 
> > > 
> > > Gorazd Petrovič wrote: 
> > > 
> > >> Jamal, 
> > >> thanks for your effort. I will do as you suggested. 
> > >> Gorazd 
> > >> On Monday, July 24, 2023 at 8:30:26 PM UTC+2, Jamal wrote: 
> > >>> I see the same issue. I suggest your post your question to the 
> > >>> forum at https://www.xsharp.eu/forum 
> > >>> 
> > >>> Robert may be able to shed some light on the stack kid size
> > limits.  >>> 
> > >>> Jamal 
> > >>> On 7/19/2023 4:14 AM, Gorazd Petrovič wrote: 
> > >>>> Please help, since I am totaly stuck with the following. Any 
> > >>>> suggestion from the VO gurus would be appreciated! 
> > >>>> 
> > >>>> 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. 
> > >>>> 
> > > 
> > > 
> > > 



-- 

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


Thread

Kid Stack Size Limit Exceeded Gorazd Petrovič <grzd.petrovic@gmail.com> - 2023-07-19 01:14 -0700
  Re: Kid Stack Size Limit Exceeded Deckard42 <deckard42@gmail.com> - 2023-07-19 05:31 -0700
    Re: Kid Stack Size Limit Exceeded Gorazd Petrovič <grzd.petrovic@gmail.com> - 2023-07-21 04:26 -0700
  Re: Kid Stack Size Limit Exceeded Jamal <vodotnet@gmail.com> - 2023-07-24 14:30 -0400
    Re: Kid Stack Size Limit Exceeded Gorazd Petrovič <grzd.petrovic@gmail.com> - 2023-07-26 02:52 -0700
      Re: Kid Stack Size Limit Exceeded "Wolfgang Riedmann" <wriedmann@gmail.com> - 2023-07-26 18:07 +0200
        Re: Kid Stack Size Limit Exceeded Jamal <vodotnet@gmail.com> - 2023-07-27 23:23 -0400
          Re: Kid Stack Size Limit Exceeded Gorazd Petrovič <grzd.petrovic@gmail.com> - 2023-07-28 03:55 -0700
            Re: Kid Stack Size Limit Exceeded Jamal <vodotnet@gmail.com> - 2023-07-28 17:26 -0400
              Re: Kid Stack Size Limit Exceeded Gorazd Petrovič <grzd.petrovic@gmail.com> - 2023-07-29 05:04 -0700
            Re: Kid Stack Size Limit Exceeded "Wolfgang Riedmann" <wriedmann@gmail.com> - 2023-08-01 10:41 +0200
              Re: Kid Stack Size Limit Exceeded Gorazd Petrovič <grzd.petrovic@gmail.com> - 2023-08-07 04:30 -0700

csiph-web