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

May 12, 2014 at 1:03 PM
Hi,
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?
Developer
May 13, 2014 at 12: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.