Skip to main content
1-Visitor
January 14, 2014
Question

Mathcad Prime 3.0 READPRN not working properly

Hello,

I am having a trouble with the Mathcad Prime 3.0 function READPRN.

It is just a simple test atm. I first define a Matrix, write it to a file with WRITEPRN and then read it again with READPRN. It works fine as long I use standard two dimensional matrices. But I need it to write/read a matrix whose elements are matrices themselve ( I thinks its called nested matrix). Anyway, the WRITEPRN function works fine again, but the READPRN causes the Mathcad to crash most of the time. It shows me a windows error message saying "PTC Mathcad Prime 3.0 has stopped working" and gives me the option to close the pogram.

I would really appreciate some help on the this issue.

I am using:

Windows 7 Enterprise SP1 64 bit

Mathcad Prime 3.0 64 bit (Trail Verison)

Attached is a example that is not working for me. (prn_ex)

EDIT: The second example is working. (prn_ex_working)

Thanks in advance

Eric

10 replies

Werner_E
25-Diamond I
January 14, 2014

I can only confirm that your first example crashes Prime for me, too. Prime 3.0, Win XP, 32 bit

Translate
1-Visitor
January 14, 2014

Werner Exinger schrieb:

I can only confirm that your first example crashes Prime for me, too. Prime 3.0, Win XP, 32 bit

I actually consider this good news, since I spend some time serching the web and didn't find anyone experiencing the same issue.

After some testing I found out that the READPRN function is not causing the crash. In fact, printing the read matrix seems to be the problem. So i tried printing just the the elementes of the matrix, which worked in most cases. Those that didn't print gave a Mathcad error message saying that the array index is invalid (atleast no more crashes). From what I can tell the dimensions of the element-matrix determines whether it gives an error or not. So I checked if I can read the dimensions of these elements using cols() and rows(), which in fact gave me the right result.

I feel very close to finding out what causes this issue. But I am reconsidering upgrading to Mathcad Prime from Mathcad 15.0.

Attached is a worksheet showing these tests.

Translate
Werner_E
25-Diamond I
January 14, 2014

It seems that if any element of the first row is a matrix the error is thrown. Sure a nasty Prime bug.

If I ask how many columns are in the first row of G, Prime hangs and has to be "closed" via taskmanager (the picture was take when the first row contained scalars only).

14.01.png

So I checked if I can read the dimensions of these elements using cols() and rows(), which in fact gave me the right result.

You may also compare the file content with a file created by MC15 to see if its the read or the write routine which is faulty. Or try to load a file written by P3 in MC15 and/or vice versa.

But I am reconsidering upgrading to Mathcad Prime from Mathcad 15.0.

IMHO there are a number of good reasons not to upgrade to Prime.


Translate