Post Reply 
New 13333 DIMGROB_P behaviour breaks many apps
02-21-2018, 01:33 PM (This post was last modified: 02-21-2018 01:51 PM by critor.)
Post: #1
New 13333 DIMGROB_P behaviour breaks many apps
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.
Find all posts by this user
Quote this message in a reply
02-21-2018, 01:34 PM
Post: #2
RE: New 13333 DIMGROB_P behaviour break many apps
Code:
IFERR
  DIMGROB_P(G1,320,240);
THEN
END;

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
02-21-2018, 01:46 PM (This post was last modified: 02-21-2018 01:52 PM by critor.)
Post: #3
RE: New 13333 DIMGROB_P behaviour breaks many apps
Oh, thank you for such a prompt and valuable reply. I'll try.
Find all posts by this user
Quote this message in a reply
02-21-2018, 03:08 PM
Post: #4
RE: New 13333 DIMGROB_P behaviour breaks many apps
Just hold on a bit longer...

TW

Although I work for the HP calculator group, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
02-21-2018, 08:15 PM
Post: #5
RE: New 13333 DIMGROB_P behaviour breaks many apps
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

TW

Although I work for the HP calculator group, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
02-21-2018, 09:27 PM
Post: #6
RE: New 13333 DIMGROB_P behaviour breaks many apps
Wow, you're faster than light. Wink
Thank you very much.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)