This project is read-only.

C#: R.NET shuts down if I use it in a task

May 12, 2014 at 2:03 PM
to have success with an computationally intensive calculation I had to make a new task.
Directly after the calculation there should be initialized a R.NET plot. The plot actually was shown, but the problem is that the window with the plot exists only for 10 seconds. Then I get the message "no callback" (on German: "Keine Rückmeldung") from the window and it closes itself.

If I call the R.NET-command outside a new task, it works. Do you have any ideas?
May 13, 2014 at 1:56 PM
Do you have a small code sample demonstrating your issue. I assume you refer to the task parallelism in System.Threading.Tasks, but this it not certain.

Opening up graphic windows from R.NET used to be an issue at least on Windows. I am not familiar as to why. Unless something has changed. Also, the R native engine is not thread safe if any concurrency is involved, so using task parallelism is not recommended.