Thanks. I am still unable to get it to work though. mxCreateDoubleMatrix() returns a Zero IntPtr. I get a subsequent exception "ArgumentNullException: Value cannot be null. Parameter name: Destination" when I try to do a Marshal.Copy() from the double array to the IntPtr.