Skip to content

Commit

Permalink
Merge pull request #287 from arup-group/bugfix/GSAGH-191-CreateProfil…
Browse files Browse the repository at this point in the history
…e-component-stops-working-after-a-while

GSAGH-191-CreateProfile-component-stops-working-after-a-while
  • Loading branch information
tlmnrnhrdt authored Jan 16, 2023
2 parents 21391ea + 11780a6 commit 6b0f3c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion GsaGH/GsaGHInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
6 changes: 6 additions & 0 deletions GsaGH/Helpers/GsaAPI/SqlReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
}
Expand Down

0 comments on commit 6b0f3c7

Please sign in to comment.