HP Forums
How to destroy a GROB? - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: How to destroy a GROB? (/thread-20571.html)



How to destroy a GROB? - Overlord - 10-01-2023 11:48 AM

I wrote a program that loads a large image into G2. But after the program is executed, I only have about 20MB of free RAM, which I believe is caused by GROB not being destroyed. If I try to run the program again, the calculator will crash. I have spent quite some time searching on the internet about how to destroy GROB or free up RAM but I couldn't find anything.


RE: How to destroy a GROB? - Tyann - 10-01-2023 03:28 PM

Bonjour
Peut ĂȘtre DIMGROB_P(Gx,0,0);


Hello
Maybe DIMGROB_P(Gx,0,0);


RE: How to destroy a GROB? - Joe Horn - 10-01-2023 04:59 PM

(10-01-2023 11:48 AM)Overlord Wrote:  I wrote a program that loads a large image into G2. But after the program is executed, I only have about 20MB of free RAM, which I believe is caused by GROB not being destroyed. If I try to run the program again, the calculator will crash. I have spent quite some time searching on the internet about how to destroy GROB or free up RAM but I couldn't find anything.

The Help screen for G0-G9 says, "Variables G1 to G9 are temporary and are cleared when the calculator turns OFF." So one simple workaround is to turn the calculator off and back on.


RE: How to destroy a GROB? - Overlord - 10-03-2023 04:38 PM

(10-01-2023 03:28 PM)Tyann Wrote:  Bonjour
Peut ĂȘtre DIMGROB_P(Gx,0,0);


Hello
Maybe DIMGROB_P(Gx,0,0);

Thank you! It worked