[Gambas-user] Program producing constant load

T Lee Davidson t.lee.davidson at gmail.com
Fri Apr 1 00:30:47 CEST 2022


On 3/31/22 06:56, Rolf-Werner Eilert wrote:
> Here is a special version Kalender4-Test which uses a special directory for its calendar data and should run on other systems too.
> 
> You need the archive and the kaltes.tar.gz of the special directory. Unpack or copy the latter to your $home as 
> $home/.kalendertest/... It contains only holiday data, everything else is left out, but it runs 
> this way and maybe shows the problem.
> 
> Hope this helps!
> 
> Regards
> Rolf

The problem is at lines 915, 997, and 1044, in the kalMonat 1-3 _Data event handlers:
If Column = 0 Then .Rows[Row].Text = KW   'Kalenderwoche

I am not certain (someone with greater knowledge of the event loop than me would need to confirm), but I suspect that setting 
the cell's text outside of the .Data property is causing the _Data event handler to be called recursively.

Is it possible to set the row header text in the AnzeigeDatum subroutine?


-- 
Lee


More information about the User mailing list