FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour variables, their validity and the memory consumption
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
variables, their validity and the memory consumption
Posted: Thu Jan 06, 2022 08:32 PM

Hello Charly,
after you are currently online, I take the opportunity to ask you something about the variables, their validity and the memory consumption.

If I create a Harbour hash and then pass it to a JavaScript object and then the mod harbour program reaches the end while processing the lines, what happens to the harbour hash.

Let us assume that I have a modal dialog with a table and fill it with AJAX.
Do I have to delete the JS object?
How to free the memory?

Best regards,
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: variables, their validity and the memory consumption
Posted: Fri Jan 07, 2022 08:59 AM

Dear Otto,

Once you are running javascript you are on the client side

Harbour only runs on the server and for an instant, so as soon as its result is delivered, it ends completely, freeing everything

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: variables, their validity and the memory consumption
Posted: Fri Jan 07, 2022 10:30 AM

Dear Antonio,
thank you.

I understand. Would you be so kind to tell us something about how to free JS from objects?
Best regards,
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: variables, their validity and the memory consumption
Posted: Fri Jan 07, 2022 02:37 PM
Dear Otto,

As far as I know it, JS uses automatic garbage collection:

https://javascript.info/garbage-collection

so you should not worry about it
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion