variables, their validity and the memory consumption

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!
Post Reply
User avatar
Otto
Posts: 7020
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

variables, their validity and the memory consumption

Post by Otto »

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
User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: variables, their validity and the memory consumption

Post by Antonio Linares »

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
Otto
Posts: 7020
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: variables, their validity and the memory consumption

Post by Otto »

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
User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: variables, their validity and the memory consumption

Post by Antonio Linares »

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
Post Reply