I'm hitting R many times using C# and at some point, I get memory violation errors. I'm not sure if this is RDotNet or R's problem, but I just found out that R has its own garbage collector. By calling the garbage collector before each iteration of calling R code, i found that I was able to get around the memory violation problems.
↧