I have ported code for my optimization plug-in from a C# component “prototype” into a “proper” component.
However, I’m now experiencing crashes when resetting the values and recomputing. The code I’m using looks like this:
slider.SetSliderValue(val); doc.ExpireSolution(); doc.NewSolution(false, GH_SolutionMode.CommandLine);
Rhino crashes when I start the NewSolution, and I also don’t see the slider changing.
Any idea why that might be/possible solutions? I didn’t have this problem when running the code inside a C# component.