Error when calling the same method twice

Aug 3, 2011 at 5:49 PM

I have encountered a showstopper of an error when using R.NET. Basically I can't call the same method twice without a crash. In other words, if I have a webpage that creates a graph with data processed by R.NET, and I reload the page, the app crashes. Pretty big problem. This is an example of a method that crashes:

 

public static void MyMethod()
{
    using (REngine engine = REngine.CreateInstance("RDotNet", OutputMode.Quiet))
    {
    }
}

 

 

Any ideas on how to deal with this? How can we help?