diff --git a/GsaGH/GsaGHInfo.cs b/GsaGH/GsaGHInfo.cs index 3fd6eea65..5c92ba240 100644 --- a/GsaGH/GsaGHInfo.cs +++ b/GsaGH/GsaGHInfo.cs @@ -40,7 +40,6 @@ public override GH_LoadingInstruction PriorityLoad() { // Try load GSA Assembly GsaAPI = Assembly.LoadFile(InstallPath + "\\GsaAPI.dll"); - Assembly SQLite = Assembly.LoadFile(InstallPath + "\\System.Data.SQLite.dll"); FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo(InstallPath + "\\GsaAPI.dll"); if (myFileVersionInfo.FileBuildPart < 63) { diff --git a/GsaGH/Helpers/GsaAPI/SqlReader.cs b/GsaGH/Helpers/GsaAPI/SqlReader.cs index 6a1d71587..750396509 100644 --- a/GsaGH/Helpers/GsaAPI/SqlReader.cs +++ b/GsaGH/Helpers/GsaAPI/SqlReader.cs @@ -41,6 +41,12 @@ public static SqlReader Initialize() return reader; } + public override object InitializeLifetimeService() + { + // disable the leasing and then the object is only reclaimed when the AppDomain is unloaded + return null; + } + public SqlReader() { }