I developed a plugin for rhino with VS C++ 2017. When I am trying to debug my code I am getting an exception as below:
Unhandled exception at 0x00007FFBEF4DA388 in Rhino.exe: Microsoft C++ exception: std::logic_error at memory location 0x000000B777748688. occurred
The exception is happening in this line:
arma::mat P = V.submat(0, BC_mod.n_rows, V.n_rows - 1, N - 1);`
I tried my code separately, it works fine, and I can see the output in the console, but when I am integrating with rhino, it gives exception that I mentioned above.
How could I solve this problem?