Quantcast
Channel: R.NET
Viewing all articles
Browse latest Browse all 1634

New Post: R Installation prerequisite

$
0
0
Hi,
I have checked out the latest source code. Thanks for you quick action. Overriding problem is resolved.
But i cannot able to Run RDotNET seperated from R Installation. I have copied all the content of the R installation directory to my project path and set R_HOME to this path. I'm running some R Commands with no problem. When i try to load a csv file for second time it gives "AccessViolationException", i will give details of th Exception below.
When i install R version 3.0.1 and run the same code except seting R_HOME variable, it works fine.

System.AccessViolationException was unhandled
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source=RDotNet
StackTrace:
   at RDotNet.Expression.TryEvaluate(REnvironment environment, SymbolicExpression& result) in C:\Users\testUser\Documents\Test Solution\Projects\TestProject\Test\RDotNet\R.NET\Expression.cs:line 58
   at RDotNet.REngine.Parse(String statement, StringBuilder incompleteStatement) in C:\Users\testUser\Documents\Test Solution\Projects\TestProject\Test\RDotNet\R.NET\REngine.cs:line 453
   at RDotNet.REngine.<Defer>d__0.MoveNext() in C:\Users\testUser\Documents\Test Solution\Projects\TestProject\Test\RDotNet\R.NET\REngine.cs:line 365
   at System.Linq.Enumerable.LastOrDefault[TSource](IEnumerable`1 source)
   at RDotNet.REngine.Evaluate(String statement) in C:\Users\testUser\Documents\Test Solution\Projects\TestProject\Test\RDotNet\R.NET\REngine.cs:line 324
   at TestProjectTool.Business.RWrapper.ExecuteCommand(String command) in C:\Users\testUser\Documents\Test Solution\Projects\TestProject\Test\TestProjectTool\Business\RWrapper.cs:line 76
   at TestProjectTool.GUI.FrmMain.btnRunModel_Click(Object sender, EventArgs e) in C:\Users\testUser\Documents\Test Solution\Projects\TestProject\Test\TestProjectTool\GUI\FrmMain.cs:line 217
   at TestProjectTool.GUI.FrmMain.btnAutoPilotMode_Click(Object sender, EventArgs e) in C:\Users\testUser\Documents\Test Solution\Projects\TestProject\Test\TestProjectTool\GUI\FrmMain.cs:line 291
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at TestProjectTool.Program.Main() in C:\Users\testUser\Documents\Test Solution\Projects\TestProject\Test\TestProjectTool\Program.cs:line 19
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
InnerException:

Viewing all articles
Browse latest Browse all 1634

Trending Articles