- Code: Select all
array test = randu(5);
double *test = test.host<double>();
which gives the error message: An unhandled exception of type 'System.Runtime.InteropServices.SEHException' occurred in test_arrayfire_vcpp.exe
However, using float instead of double works fine.