When the joint value of the VC software robot is continuously changed in NET.multithread, it will cause the VC to report an error and crash when running for a long time

Excuse me, I’m having a problem at the moment. When I continuously change the joint value of the VC software robot in NET.multithread, it will cause the VC to report an error and crash when running for a long time. Visual Studio will report an error message of “Write Protection Memory Error”. Is there any workaround for it?

None of the VC .NET API is thread-safe, it is only safe to access from the main application thread. Failing to do so will inevitably result in seemingly random crashes as memory corruption occurs over time.
You can use the WPF Dispatcher class to run code in the main thread.