variables, their validity and the memory consumption

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

variables, their validity and the memory consumption

Postby Otto » Thu Jan 06, 2022 8: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: variables, their validity and the memory consumption

Postby Antonio Linares » Fri Jan 07, 2022 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42098
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: variables, their validity and the memory consumption

Postby Otto » 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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: variables, their validity and the memory consumption

Postby Antonio Linares » Fri Jan 07, 2022 2: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42098
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 10 guests