Skip to content

Commit

Permalink
EnableNoGCRegionDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
kike-garbo committed Jul 2, 2024
1 parent 73f7937 commit 81321a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/RhinoInside.Revit/Rhinoceros.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ internal static bool InitEto(Assembly assembly)
if (Eto.Forms.Application.Instance is null)
new Eto.Forms.Application(Eto.Platforms.Wpf).Attach();

#if RHINO_8
Eto.Wpf.Forms.Controls.TextBoxHandler.EnableNoGCRegionDefault = false;
#endif

return true;
}

Expand Down Expand Up @@ -244,7 +248,7 @@ internal static bool Run()

return active;
}
#endregion
#endregion

#region Guests
class GuestInfo
Expand Down

0 comments on commit 81321a8

Please sign in to comment.