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


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

Re: limit exceeded

From Franz Rachbauer <office@rachbauer.org>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: limit exceeded
Date 2021-07-10 12:16 +0200
Organization Aioe.org NNTP Server
Message-ID <scbs2v$1qrg$1@gioia.aioe.org> (permalink)
References <dbb39761-6f9f-42de-a5dd-f0dfe2c52e6an@googlegroups.com> <sc9poo$e5g$1@gioia.aioe.org> <4c5dcb2d-5f2c-4596-bf66-0bc3db17c03bn@googlegroups.com> <sc9vgk$156h$1@gioia.aioe.org> <c4e9eadb-363f-493a-967e-ce3bd2469880n@googlegroups.com>

Show all headers | View raw


My code only was an example to show you the logic, you should not use it 
as it is. It seems that METHOD Dispatch(oE) CLASS WindowPatients_Browse 
is called in a loop. You have to show why and where and then make an 
"emergency exit" which exits the loop.
Franz

Am 10.07.2021 um 08:21 schrieb aurora baccio:
> Il giorno venerdì 9 luglio 2021 alle 19:03:21 UTC+2 Franz Rachbauer ha scritto:
>> You have a function or event which calls itself in a loop
>> Ensure that your recursive code has a base case which is able to be met
>> so it never loops.
>>
>> global glExit := FALSE as logic
>> do while TRUE
>> if glExit
>> // Do something to exit loop
>> endif
>> glExit := TRUE
>> enddo
>> Am 09.07.2021 um 17:40 schrieb aurora baccio:
>>> Il giorno venerdì 9 luglio 2021 alle 17:25:16 UTC+2 Franz Rachbauer ha scritto:
>>>> Hi Aurora,
>>>> please look at
>>>> https://groups.google.com/g/comp.lang.clipper.visual-objects/c/EXM73l7bhyg?pli=1
>>>> It seems that app is in a loop.
>>>> Regards, Franz
>>>> Am 09.07.2021 um 16:12 schrieb aurora baccio:
>>>>> Good afternoon,
>>>>> Sorry to bother you again.
>>>>> what does the following error message mean?
>>>>> limit exceedec
>>>>> kid stack size limit exceeded
>>>>> patients_brose:dispactch() line 8
>>>>> Here is line 8 of the dispach method
>>>>> nReturn := SUPER:Dispatch(oE)
>>>>> This error occurs on only one of the five PCs running the same application, and only in one doctor's office. Nothing like this occurs on other PCs or in other doctors' offices using the same application.
>>>>> I assume this is an operating system problem. But I'm not sure. However, the pc has some office related problem. But again I am not sure. Could it have to do with centerdatawindow() ?
>>>>> Thanks
>>>>> Aurora Baccio
>>>>>
>>> I understand and the type of error and thank you.
>>> I must also add that it is not reported in VOerrore.log.
>>> but what does it mean :
>>> You need to be throwing a calling stack on entry to where-ever this is
>>> happening.
>>> thanks
>>> Aurora Baccio
>>>
> 
> 
> thank you for your reply and example.
> this is the code where the error is reported, line 8
> 
> 1)METHOD Dispatch(oE) CLASS WindowPatients_Browse
> 2)	
> 3)	// this method is fundamental to handle all the events of the window of
> 4)	// membership keep it in mind !!!! is outstanding
> 5)	LOCAL nRETURN as int
> 6)	STATIC cLastKey := "" as STRING
> 7)
> 8)	nReturn := SUPER:Dispatch(oE)
> 9)
> 10)		IF oE:Message = WM_TIMER .and. ; // a message has arrived from the timer
> 11)			self:oDCCerca <> null_object .and. ; // the control has already been created	
> 12)			Trim(self:oDCCerca:TEXTValue)<> cLastKey // the search key has changed
> 13)			cLastKey := FabAllTrim(self:oDCCerca:TEXTValue)
> 14)			
> 15)			self:oSF_WindowPatients_Browse:Server:SetOrder(2)
> 16)			// execute the search
> 17)			self:oSF_WindowPatients_Browse:Server:Seek(cLastKey)
> 18)			
> 19)			IF self:oSF_FWindowPatients_Browse:Server:EOF
> 20)				Tone(800,3)
> 21)				self:oSF_FWindowPatients_Browse:Server:GOTOP()
> 22)			ENDIF
> 23)	
>   24)       ENDIF
> 25)	RETURN nRETURN
> 
> I must then create a global variable glexit := false as logic
> the control should be inserted where ?
> Could you be more precise?
> thanks
> Aurora Baccio
> 

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


Thread

limit exceeded aurora baccio <aurorabaccio@gmail.com> - 2021-07-09 07:12 -0700
  Re: limit exceeded Franz Rachbauer <office@rachbauer.org> - 2021-07-09 17:25 +0200
    Re: limit exceeded aurora baccio <aurorabaccio@gmail.com> - 2021-07-09 08:40 -0700
      Re: limit exceeded Franz Rachbauer <office@rachbauer.org> - 2021-07-09 19:03 +0200
        Re: limit exceeded aurora baccio <aurorabaccio@gmail.com> - 2021-07-09 23:21 -0700
          Re: limit exceeded JohnMartens <martens@tennishulp.info> - 2021-07-10 08:41 +0200
            Re: limit exceeded aurora baccio <aurorabaccio@gmail.com> - 2021-07-10 03:20 -0700
              Re: limit exceeded aurora baccio <aurorabaccio@gmail.com> - 2021-07-11 00:58 -0700
                Re: limit exceeded JohnMartens <martens@tennishulp.info> - 2021-07-11 13:36 +0200
          Re: limit exceeded Franz Rachbauer <office@rachbauer.org> - 2021-07-10 12:16 +0200

csiph-web