[Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4
Christof Thalhofer
chrisml at deganius.de
Fri Sep 29 08:01:10 CEST 2023
Am 28.09.23 um 23:17 schrieb Benoît Minisini:
> Do you run the event loop between two calls to Get()?
It's a timer in the main form of the application called 'TimerLeds'.
Every time it triggers, it runs a Sub 'RetrieveFlags()' in the form's
class that creates a new object of the class 'DegApp' (which contains
the Get() function).
Code shortened:
> Public Sub TimerLeds_Timer()
> RetrieveFlags()
> End
>
> Sub RetrieveFlags()
>
> Dim App As New DegApp
> jsonliste = App.Get()
> ' then do some stuff with jsonliste
> End
'RetrieveFlags()' does some stuff with 'jsonliste' but even when I
switch that code off it eats memory and crashes the application after a
while.
I also tried also to insert 'App = Null' at the end of RetrieveFlags()
but still it eats memory.
Alles Gute
Christof Thalhofer
--
Dies ist keine Signatur
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230929/b52b6b70/attachment-0001.sig>
More information about the User
mailing list