cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

How do I trace the stack to remove an error in MathCAD?

CG_10324365
4-Participant

How do I trace the stack to remove an error in MathCAD?

Making some calculations with MathCAD I got an error such as:

 

Unknown error: A call target threw an exception.

Is there some stack trace which I could investigate to comprehend the situation? Thanks in advance.

 
1 ACCEPTED SOLUTION

Accepted Solutions

AFAIK Prime (I guess you are referring to Prime and not to Mathcad 15 or earlier) does not offer that kind of tool.

 

Error messages often are imprecise, misleading or, as in your case, pretty unhelpful.

Sometimes experience helps to determine the real cause for the error.

If you are able to do so you may post the worksheet here or a stripped down demo worksheet showing the error. Maybe some users here are able to track down the error.

View solution in original post

5 REPLIES 5

AFAIK Prime (I guess you are referring to Prime and not to Mathcad 15 or earlier) does not offer that kind of tool.

 

Error messages often are imprecise, misleading or, as in your case, pretty unhelpful.

Sometimes experience helps to determine the real cause for the error.

If you are able to do so you may post the worksheet here or a stripped down demo worksheet showing the error. Maybe some users here are able to track down the error.

CG_10324365
4-Participant
(To:Werner_E)

Thank you all of you for the explanation. It is clear for me. Exactly what I needed!

LucMeekes
23-Emerald III
(To:CG_10324365)

I assume you're using Prime... Did it stay alive, or did it crash with that message?

The error message, to me, is not of the sort that a user should get. It sounds more like Prime ran into an unexpected problem, that the application wasn't prepared for. So I (also) assume it crashed with that message. In that case you may have a .log file, somewhere in C:\ProgramData\PTC\Mathcad Prime\Logs. The log file is for PTC to know what went wrong, not for users to help them correct their input to the application.

 

Success!
Luc

Hi,

Pepper the file with WRITEPRN statements altering the file name in a sensible fashion.

Prime will write the files until something crashes then you know what is causing the problem.

Capture.JPG

Cheers

Terry

If you see an error message that starts with "Unknown error" it is usually an indication of a defect and should be reported to tech support with sample worksheet, or steps to reproduce. 

Mathcad Prime has "Error Tracing" functionality on "Calulation" tab in ribbon. This feature helps to navigate "error chain" i.e. in situation when calculation error in one region is caused by  or related to an error in another region. I am not sure it will be helpful in your specific case. 

Mathcad 15 also has similar error tracing functionality.

Top Tags