I got the following error:
I create a new linear regression model and data frames every time the application accesses R - could this be the issue? How do I clean the memory once done with the model/data-frame?
Thanks
RDotNet.EvaluationException: Error: protect(): protection stack overflow
at RDotNet.REngine.Parse(String statement, StringBuilder incompleteStatement)
at RDotNet.REngine.<Defer>d__0.MoveNext()
at System.Linq.Enumerable.LastOrDefault[TSource](IEnumerable`1 source)
at RDotNet.REngine.Evaluate(String statement)
This happened while running something like this:_rEngine.Evaluate("newcol <- c(...values...)").AsNumeric();
I.e. creating a new column with some values, which is then used to create a DataFrame. I did not change the code for some time and it always worked correctly. It only threw after few days of running. That's why (and also because of the err. message) it looks like there was some memory limit reached. I create a new linear regression model and data frames every time the application accesses R - could this be the issue? How do I clean the memory once done with the model/data-frame?
Thanks