Skip to main content
1-Visitor
March 21, 2014
Question

Mathcad Memory Leak - Large Data on Clipboard

  • March 21, 2014
  • 2 replies
  • 6235 views

OVERVIEW:

1) I copy a large table from RISA-3D

2) Open a blank Mathcad Sheet

3) Look in Windows Task Manager, The Memory for mathcad.exe *32 increases DRAMATICALLY when Mathcad has focus, when Mathcad doesn't have focus; Memory only increases by 500 KB per second.

4) this 'RAPID' Memory use can be terminated by copying something MUCH smaller (i.e. A string variable from mathcad itself)

5) After copying something smaller, mathcad sill has a large memory allocation; only way to free it is to terminate the Applicaton

6) If I fail to copy something else; mathcad runs out of memory preventing me from saving and eventually crashes.

SPEC:

Mathcad 15.0 (15.0.0.436 [006041742]) -> MC15 M020

Windows 7 Proffesional; Service Pack 1 (64-bit)

QUESTION:

Is there a fix? OR am I just going to have to copy and past quickly?

2 replies

25-Diamond I
March 21, 2014

To get you right: You have a large amount of data on the clipboard before you startup Mathcad. Then you start the program and have just a blank sheet. You do NOT insert the data in Mathcad but Mathcad runs out of memory just because ther is big data on the clipboard? Strange, indeed!

Obviously copying something smaller replaces the big data on the clipboard and stops the effect. So the workaround would be to clear the clipboard before starting Mathcad by copying anything (desktop icon or whatever) via CTRL-C? Does the same thing happens if you copy the big data to the clip after you startup Mathcad?

Lemens1-VisitorAuthor
1-Visitor
March 21, 2014

That is Correct. Copied, Opened up Mathcad, and within 80 seconds:

Untitled.png

Identical results when mathcad is opened during the copy operation.

Catch 22 is that I'm pasting the information into Mathcad, so I merely cannot avoid making large copies w/ mathcad open. However, I do have an 80 second window to paste and save. I am able to reopen the file and work with it without losing memory, its just when I have something in the clipboard. This is actually kind of scary considering I'm not telling mathcad to do anything WITH the copied information and its crashing.

Thank you,

25-Diamond I
March 21, 2014

Guess you should contact PTC support if you are under maintenance. PTC seems not to be that keen on bug reports and you have tp pay for the privilege to turn them in.

24-Ruby III
March 24, 2014

Kenny Lemens wrote:

OVERVIEW:

1) I copy a large table from RISA-3D

2) Open a blank Mathcad Sheet ...

Why do not you first save this table in ".txt/.prn" or ".xls" format?

Kenny Lemens wrote:

... SPEC:

Mathcad 15.0 (15.0.0.436 [006041742]) -> MC15 M020 ...

PTC Mathcad 15 F000 = 15.0.0.436 [006041742]. Try to upgrade to the latest service release Mathcad 15 M030.

Lemens1-VisitorAuthor
1-Visitor
March 24, 2014

VladimirN.,


Initially, I was saving the data in ".xls" format, but Excel wasn't capable of the large copy and paste I was doing; that is to say that I had more than 65536 rows... a lot more to be exact. I could use a ".txt" and input the table that way into mathcad, but my problem isn't that Mathcad cannot handle the memory of the large amount of data (on the contrary, Mathcad handles the data VERY well) but that it cannot control itself when there is a large amount of data on the Clipboard. I think this is an OLE interface issue... because when Mathcad is busy (lets say an infinite loop I put it into constantly check memory usage) the memory does not rise, but as soon as I terminate this process; mathcad resumes its memory feeding frenzy.

M030 may address this problem, but I doubt it. I'm just going to work around it.

Cheers,

25-Diamond I
March 24, 2014

M030 may address this problem, but I doubt it. I'm just going to work around it.

Find attached the readme for MC15 M030 with the list of fixes made.

Most noticable is the short description of a problem which was fixed in M020:

"2047116 Fixes a memory issue resulting in crash in certain copy and paste operations"