Hi,
Because the code is blocking while running the C script file by the API G__calc, I do not have any method to notify the C script “return”; I only used the TerminateThread to terminate the running thread
You end G__calc by simply setting int terminateThread = 1. There is an issue with the two threads accessing the same memory address without synchronization, but really, you don’t care