Using: vs2010, Windows 7 64 bit, C#, WPF Windows app.
The first time I call 'Plot' with the following code - it works. The second time, I get the following:
doubleArray is defined as as double[],
NumericVector rGraphVector = engine.CreateNumericVector(doubleArray);
engine.SetSymbol("rGraphVector", rGraphVector);
string rCommand = "plot(rGraphVector)";
object x = engine.EagerEvaluate(rCommand); // Exception happens here.
Exception:
Additional Information: A callback was made on a garbage collected delegate of type 'R.NET!RDotNet.Internals.blah3::Invoke'. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be kept alive by the managed application until it is guaranteed that they will never be called.
Comments: To check with unit or repro test with latest code
The first time I call 'Plot' with the following code - it works. The second time, I get the following:
doubleArray is defined as as double[],
NumericVector rGraphVector = engine.CreateNumericVector(doubleArray);
engine.SetSymbol("rGraphVector", rGraphVector);
string rCommand = "plot(rGraphVector)";
object x = engine.EagerEvaluate(rCommand); // Exception happens here.
Exception:
Additional Information: A callback was made on a garbage collected delegate of type 'R.NET!RDotNet.Internals.blah3::Invoke'. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be kept alive by the managed application until it is guaranteed that they will never be called.
Comments: To check with unit or repro test with latest code