C# component error when running in wallacei

C# component error when running in wallacei
showing “1. error begin run (invalidoperationexception): the calling thread cannot access this object because a different thread owns it.”
Wallacei then runs continuously but produces no results.
But running it in octopus produces results!
My genotype is controlling 10 functional region rectangles by length, selection, and movement, with 3 optimization goals including functional region correlation distance, interference influence index, and overlap area.
All three optimization objectives are written in C#.



running it in octopus produces results

I can not help you until I see what is inside your c# component. A couple of screen shots do not have any useful information for me to help you with your issue.

For your future questions, I’d recommend following the steps that David explained below

I have two optimization goals, one is to have functionally relevant distances as small as possible and one is to have functionally interfering distances as large as possible

The first ten C# components are used to create rectangles of fixed area and controlled by length, rotation and displacement. These are also genotypes.
The last two C# components are used to calculate weighted correlation distances.
算法fin.gh (45.8 KB)
算法1.3dm (64.7 KB)

I just run your file and it worked perfectly, there might be something wrong with your GH Rhino installation