HP Forums
New 13333 DIMGROB_P behaviour breaks many apps - 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: New 13333 DIMGROB_P behaviour breaks many apps (/thread-10215.html)



New 13333 DIMGROB_P behaviour breaks many apps - critor - 02-21-2018 01:33 PM

Hi.

Many apps, games but not only, start by dimensioning GROB objects with fixed values. For example, this is a quite frequent line for fullscreen backgrounds and offscreens :
Code:
DIMGROB_P(G1,320,240);

Problem.
With 13333, DIMGROB_P now reports a memory error if the specified grob already has the requested dimensions :
[Image: 2043_1519218656_5a8d6fe0cab23.png]
Yes, even with 1x1px grobs and more than 13MiB free RAM...

As a consequence, many apps can't be run twice in a row anymore.
And many apps can't be run anymore if the last run app used some grob objects with the same dimensions.

The user will need to manually DIMGROB_P to some random values between apps if he knows about the issue, or to reset.

The problem wasn't there in 13217 beta.

Any workaround ? Is there a way to check the grob dimensions before calling DIMGROB_P ?

Thanks.


RE: New 13333 DIMGROB_P behaviour break many apps - Han - 02-21-2018 01:34 PM

Code:
IFERR
  DIMGROB_P(G1,320,240);
THEN
END;



RE: New 13333 DIMGROB_P behaviour breaks many apps - critor - 02-21-2018 01:46 PM

Oh, thank you for such a prompt and valuable reply. I'll try.


RE: New 13333 DIMGROB_P behaviour breaks many apps - Tim Wessman - 02-21-2018 03:08 PM

Just hold on a bit longer...


RE: New 13333 DIMGROB_P behaviour breaks many apps - Tim Wessman - 02-21-2018 08:15 PM

Ok, the new versions are out and posted. This will correct that issue.

...and we have another group of tests in the test suite now revolving around running the same program multiple times... Smile


RE: New 13333 DIMGROB_P behaviour breaks many apps - critor - 02-21-2018 09:27 PM

Wow, you're faster than light. Wink
Thank you very much.