Memory corruption issues with a certain integral.
|
05-13-2021, 01:39 AM
(This post was last modified: 05-13-2021 01:52 AM by t_angenbrandt.)
Post: #1
|
|||
|
|||
Memory corruption issues with a certain integral.
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) |
|||
05-13-2021, 03:57 AM
Post: #2
|
|||
|
|||
RE: Memory corruption issues with a certain integral.
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. |
|||
05-13-2021, 07:10 AM
Post: #3
|
|||
|
|||
RE: Memory corruption issues with a certain integral.
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. |
|||
05-13-2021, 07:57 AM
(This post was last modified: 05-13-2021 08:35 AM by t_angenbrandt.)
Post: #4
|
|||
|
|||
RE: Memory corruption issues with a certain integral. | |||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)