I’m not entirely sure where the best place to put this question as I am new to this place and Julia in general. I’ve tried stack overflow but I think this is too specific for that.
I’ve embedded Julia into C# using the public C API. When I run the backslash command, execution stalls, and the process keeps consuming processor power. I’ve tried it both by running functions from imported modules and just running statements with
Here are two examples of I can do that get’s it to hang.
a = [1 2;3 4];
b = [4;6];
c = a\b;
In C# main function
jl_eval_string(“a=[1 2;3 4];”);
jl_eval_string(“b = [4;6];”);
I tried running it in a try/catch block to see if that would help, but it didn’t. Running the statements in the REPL or with a script executed from the command line work just fine. I’m not entirely sure what the differences are between running Julia from the command line and from C#.
Does anyone have an idea about what is going on here? I’ve tried using other lin alg functions and they work just fine.