[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Program run at startup hogs cpu?


On Tue, 11 Mar 2025 at 20:32, Benoît Minisini <
benoit.minisini@xxxxxxxxxxxxxxxx> wrote:

> Le 11/03/2025 à 18:42, Bruce Steers a écrit :
> >
> >
> > On Tue, 11 Mar 2025 at 16:43, Benoît Minisini <benoit.minisini@gambas-
> > basic.org <mailto:benoit.minisini@xxxxxxxxxxxxxxxx>> wrote:
> >
> >     Le 11/03/2025 à 12:17, Bruce Steers a écrit :
> >      >
> >      > Here's a peculiar problem...
> >      > My launcher program Desktop-ish does something strange.
> >      >
> > >
> > On closer inspection it does not start at high cpu usage it slowly
> > steadily increases until eventually maxed out.
> >
> > Respects
> > BruceS
> >
>
> Then it may be a watched file descriptor that triggers again and again.
> I have fixed a bug relatively to that behaviour in Gambas 3.20.2.
>
> --
> Benoît Minisini.


I think it's something to do with my use of Task.class

it has 2 classes inheriting task.class that run at startup to speed up
opening by doing a couple of things via another process.

I changed some things around and eventually stopped the problem.
I'm not 100% sure what the cause was. i suspect a task was not filling a
collection properly.

Thank you for suggestions.
BruceS

References:
Program run at startup hogs cpu?Bruce Steers <bsteers4@xxxxxxxxx>
Re: Program run at startup hogs cpu?Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Program run at startup hogs cpu?Bruce Steers <bsteers4@xxxxxxxxx>
Re: Program run at startup hogs cpu?Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>