Rhino C++ Unhandled C++ Exception

Hello,
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?

Thanks

Hi @omidk,

Have you tried debugging your code? Have you put a breakpoint near this code?

There isn’t enough information for us to provide any help - sorry.

– Dale