R.net crashes when loading objects from external files

Jul 24, 2011 at 2:02 PM

Hi R.net guys, 

First I want to thank you about this awesome library, I hope that it will keep improving over the time.

I am having a an issue when using the library, so I have a big table stored in a file I usually load it in R using the following code:

tab<-read.table(file="myTabFile.txt",header=TRUE)

but when I execute this command using R.net it crashes and I get this listing :

System.Runtime.InteropServices.SEHException was unhandled
  Message=External component has thrown an exception.
  Source=R.NET
  ErrorCode=-2147467259
  StackTrace:
       at RDotNet.Internals.DirectNativeMethods._R_ParseVector(IntPtr statement, Int32 statementCount, ParseStatus& status, IntPtr _)
       at RDotNet.Internals.DirectNativeMethods.R_ParseVector(IntPtr statement, Int32 statementCount, ParseStatus& status, IntPtr _)
       at RDotNet.REngine.Parse(String statement, StringBuilder incompleteStatement)
       at RDotNet.REngine.<Evaluate>d__0.MoveNext()
       at System.Linq.Enumerable.LastOrDefault[TSource](IEnumerable`1 source)
       at RDotNet.REngine.EagerEvaluate(String statement)

I thought it is a problem with the memory, but if I execute matrix(0,2000,500) it works normally

I there are workthrought or any fixes.

thanks in advance.