Memory corruption issues with a certain integral. - 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: Memory corruption issues with a certain integral. (/thread-16929.html) |
Memory corruption issues with a certain integral. - t_angenbrandt - 05-13-2021 01:39 AM Good evening. I have created a tiny program to faster integrate over spherical, cylindrical etc. coordinate systems. The relevant part for this example is as follows: Code:
Basically this program takes the arguments and calculates the attached integral. The problem is, when this function is executed for a couple of times, the CAS starts to misbehave and memory corruption seems to occur; sometimes the operating system simply crashes. The variable browser in HP Connectivity Kit shows seemingly empty variables with strange contents (see attached screen). You may test this program by calling it with Code:
When we restart the CAS, the purged variables look as attached in the screenshot. Tell me if you have any ideas on what I am missing there. Kind regards. Information on the environment: Prime G2 20210505 update (it was buggy before this version as well) RE: Memory corruption issues with a certain integral. - robmio - 05-13-2021 03:57 AM I think the only way to avoid strange behavior is to delete the "corrupted" variables from CAS memory (Shift + Memory -> Cas Vars, Delete) every time the integral is calculated. The same thing happens to me too, when I calculate a "difficult" integral: I think that the HP PRIME calculator stores in Cas some "dummy" variables that lead to the resolution of the integral. RE: Memory corruption issues with a certain integral. - Stevetuc - 05-13-2021 07:10 AM Unlikely to be due to lack of memory as its a G2, unless it's a leak or some other memory management issue? Hopefully hp team can advise. RE: Memory corruption issues with a certain integral. - t_angenbrandt - 05-13-2021 07:57 AM (05-13-2021 07:10 AM)Stevetuc Wrote: Unlikely to be due to lack of memory as its a G2, unless it's a leak or some other memory management issue? Out of memory issues should lead to an instant crash or not? I never had such an occurrence. |