Unable to cast MWCellArray to System.Object[,]

1 view (last 30 days)
Tae Kim
Tae Kim on 13 Sep 2012
Hi,
I am using .NET Assembly Native Dll (generated by Builder NE) with 64 bit Matlab 2012. The problem is that my .net application is unable to cast MWCellArray which gets returned from matlab. Because I am using native assembly, my application is expecting to get 'System.Object[,]' and not MWCellArray. The same application works fine with 32 bit Matlab 2012. Any ideas why I am running into this problem? The actual error message is below....
Unable to cast object of type 'MathWorks.MATLAB.NET.Arrays.native.MWCellArray' to type 'System.Object[,]'
Thank you in advance!

Answers (0)

Community Treasure Hunt

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

Start Hunting!