My problem was that I had some data structures defined as class objects. They lost their identity as classes when used within a parfor loop. Once they lost their identity as classes then the methods used to act on them were not defined and created errors, crashing parfor.
The object I was using is complex, but I was able to replicate this problem with a trivial example. If you look at the comments in serial_eval.m you will see my description of the problem as well as error messages I get when I run it and the virtually identical error message I get when I run my real code.
Following is a link to a .zip file containing the example script (serial_eval.m) and the class directory (@polynom) so you can try it out on your own.
I received some very good tech support from matlab on this issue. Apparently this was a problem only in R2007b on windows. It was not a problem on linux/mac R2007b and has been fixed in R2008a for windows.
Return to MATLAB PCT notes
Return to Art Gleason Home
Last Updated: Jun 2008