Building a .net Assembly with Reference to x64 MWArray.dll

7 views (last 30 days)
I have a Windows 7 x64 machine with Matlab R2012a (7.14.0.739) 64-bit (win64).
I have a project and I build it on that machine. The resulting .net assembly is CPU independent but it references the 32 bit MWArray.dll. I can see that from the following:
- If I install the 32 bit Matlab runtime and build a 32 bit .net application it works - If I install the 64 bit Matlab runtime it tells me that it cannot find the correct version of MWArray.dll - If I check the .net assembly created with Matlab using JetBrains dotPeek it tells me that the assembly references "C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v717\toolbox\dotnetbuilder\bin\win32\v2.0\MWArray.dll". As you can see this is the 32 bit version of MWArray. Notice that this path does not exist on the Matlab machine where I am building the assembly.
Is there a way to force Matlab to create the .net assembly with a reference to the 64 bit version of MWArray.dll so that I can use the 64 bit runtime?
  1 Comment
Paridhi Shukla
Paridhi Shukla on 4 Mar 2016
Hi I had the same problem and I was able to resolve by building the project by setting x64 CPU platform target in the project properties and using MWArray.dll for 64 bit. Hope it helps.
You can get the dll file from the following path $Matlab root path \toolbox\dotnetbuilder\bin\Win64\v2.0

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!