using Matlab's mxArray gives me a typeLoadException
Posted on 2004-08-18
I recently moved my project, which calls a matlab dll, from VS6 to VS7. I got it running like that ok. Then I spent a while changing the program to use ADO .NET. Now when I run functions with matlab stuff in them I get the following exception:
An unhandled exception of type 'System.TypeLoadException' occurred in MyProject.exe
Additional information: Could not load type mxArray_tag from assembly MyProject, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.
The exception comes up when the code tries to step into one of the functions with matlab stuff (including mxArrays and calls to stuff in the dll).
Does anyone know what causes this? How do I make my project know about mxArray? As far as I can recall I haven't changed the project settings, or the files with the matlab stuff in them, or anything else connected to the matlab. But I guess my memory is failing me or something, 'cause it was definitely working before, and it isn't now.
Thanks for your help.