Skip to main content
1-Visitor
May 4, 2017
Solved

not enough memory

  • May 4, 2017
  • 5 replies
  • 10997 views

Hello,

I don't know what has happened to my program. It was working before but suddenly it can't do the calculation and says "not enough memory for this operation". Can you please check and find the reason?

All the best

Payman

Best answer by Werner_E

PAYMAN RAJAI wrote:

I agree, I re-started my laptop and no longer get that message so far.

Hmm, so it looks like its not only Mathcad having a suboptimal garbage collection.

Next time you experience that problem you could start the task manager and look if the process mathcad.exe is still running in memory even though you already close the program. This happens from time to time (it happens every time with Mathcad 14 M035) and chances are that this process eats up memory which then can't be used by the next instance of Mathcad. Not sure about that but its worth a try to kill that superfluous process.

5 replies

25-Diamond I
May 5, 2017

Have you tried closing Mathcad and opening it again with your file?

When I open your sheet all looks OK - I don''t experience any error.

payman1-VisitorAuthor
1-Visitor
May 5, 2017

I did and closed all other programs. It worked at the first time and when I changed the numbers, didn't work again !!

25-Diamond I
May 5, 2017

You have to tell us exactly what to change to get the error.

I just changed a few of the top values and all looks OK - the sheet calculates w/o any error.

24-Ruby III
May 5, 2017

Please check attached worksheet. What version of Mathcad are you using?

payman1-VisitorAuthor
1-Visitor
May 5, 2017

Not working ! I'm using Mathcad 14.

25-Diamond I
May 6, 2017

PAYMAN RAJAI wrote:

Not working ! I'm using Mathcad 14.

So chances are you ran into a bug which is already fixed in newer versions.

You may search this forum for the release notes to Mathcad 14 M035) and Mathcad 15 (M045) to look if a bug which fits to your problem is already fixed.

Any chance to upgrade to the newest MC15 M045?

Or at least you should install Mathcad 14  M030 (M035 has a bad bug so that  mathcad.exe remains in memory after closing the program and the process has to be killed via task manager).

1-Visitor
May 7, 2017

Hey

i have the exact same problem with the memory!

Im working with excel mathcad coupling.

Having for example 3000 loadcases to calculate.

Closing excel opening mathcad.

Reading in the input matrix from excel (3000 loadcases)

Now i encountered the problem, that when the input matrix is too big and the calculation exceeds a certain degree of complexity i have the same problem with not enough memory. I think its a general mathcad problem and is not depending on the physical memory since i have no problems when the input matrix is smaller.

---------------------------------------------------------------------------------

I have found a small workaround to allow me a bigger input matrix to calculate:

I marked the hole calculation and made a part.

Then i hided the hole calculation so that i only can see the "Writeexcel" function to write the results back to my excel file to see the results.

-----------------------------------------------------------------------------------

As for now i cannot calculate 10-20 percent of my calculations because they seems to be too complicated to calculate because i always encounter the memory problem so i need to simplify the calculation so i can avoid this.

Best regards Stefan

1-Visitor
May 7, 2017

Maybe there is another solution to avoid this problem because this is really a problem for my calculations.

7-Bedrock
May 12, 2017

What Windows version ? How often do u reboot your computer ?

Having similar problem with longer worksheets with Mcd15 & Win7 when not rebooting for several days, depending indeed on other activities on the computer (Internet surfing, MS Office, ...). Memory management by Win (at least by Win7) seems to be a problem too...

Regards, Liv.

1-Visitor
May 13, 2017

Hmm starting up my computer every day.

I think i have windows 7 or so.

With 16 gigs of RAM i only can calculate some stuff when i hide some areas.

Werner_E25-Diamond IAnswer
25-Diamond I
May 13, 2017

PAYMAN RAJAI wrote:

I agree, I re-started my laptop and no longer get that message so far.

Hmm, so it looks like its not only Mathcad having a suboptimal garbage collection.

Next time you experience that problem you could start the task manager and look if the process mathcad.exe is still running in memory even though you already close the program. This happens from time to time (it happens every time with Mathcad 14 M035) and chances are that this process eats up memory which then can't be used by the next instance of Mathcad. Not sure about that but its worth a try to kill that superfluous process.