gksmithlcw wrote:
I got it to run properly in SQL Server by omitting the call to Dispose(). However, now I'm running up against the library apparently crashing after running for several minutes. Any thoughts?
Thanks!
I've implemented the HellowWorldFromR() method as well as several others but after I execute one from SQL Server one time and attempt a second execution, I get this error, presumably because I call Dispose():Update:
Msg 6522, Level 16, State 2, Line 32
A .NET Framework error occurred during execution of user-defined routine or aggregate "OneSidedHypothesis":
System.InvalidOperationException: The single REngine instance has already been disposed of (i.e. shut down). Multiple engine restart is not possible.
System.InvalidOperationException:
at RDotNet.REngine.GetInstance(String dll, Boolean initialize, StartupParameter parameter, ICharacterDevice device)
at ProviderAnalysisCLR.OneSidedHypothesis(SqlDecimal PriorAverage, SqlDecimal Tau, SqlDecimal ProvMean, SqlDecimal ProvStdDev, SqlDecimal N)
How am I supposed to get around this? Clearly, the engine should be disposed and when I run this as a standard function from a Console app it works fine with repeated executions.
I got it to run properly in SQL Server by omitting the call to Dispose(). However, now I'm running up against the library apparently crashing after running for several minutes. Any thoughts?
Thanks!