From: Trevor Thomson on
When I attempt to make a call to a a function in a matlab assembly built for .net, an exception is thrown with error message (with no message!):

.... MWMCR::EvaluateFunction error ...
..


StackTrace: at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(String functionName, Int32 numArgsOut, Int32 numArgsIn, MWArray[] argsIn)
at MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(Int32 numArgsOut, String functionName, MWArray[] argsIn)
at RevScenarios.RevScenarios.generateScenarios(Int32 numArgsOut, MWArray NetRevenue, MWArray AdSpend, MWArray ClicksCharged, MWArray AvgPosition, MWArray NumScenarios)

The error I believe has something to do with the MWArray assembly.

This error only occurs when using the 64bit version of MWArray.dll. Using a 32bit version of the assembly works just fine. Both MCR v710 32bit and 64bit ARE installed on the machine when it's running.

What could be causing this?