From 81321a802fcec211a75a6788499dfa7708eb4bcc Mon Sep 17 00:00:00 2001 From: kike-garbo Date: Tue, 2 Jul 2024 18:12:30 +0200 Subject: [PATCH] `EnableNoGCRegionDefault` --- src/RhinoInside.Revit/Rhinoceros.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/RhinoInside.Revit/Rhinoceros.cs b/src/RhinoInside.Revit/Rhinoceros.cs index 595da1f70..40aceffba 100755 --- a/src/RhinoInside.Revit/Rhinoceros.cs +++ b/src/RhinoInside.Revit/Rhinoceros.cs @@ -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; } @@ -244,7 +248,7 @@ internal static bool Run() return active; } - #endregion +#endregion #region Guests class GuestInfo