diff --git a/Source/Examples/ExampleBrowser.cs b/Source/Examples/ExampleBrowser.cs index da61a3a5..5f615445 100644 --- a/Source/Examples/ExampleBrowser.cs +++ b/Source/Examples/ExampleBrowser.cs @@ -32,6 +32,7 @@ using System.Drawing.Text; using System.Reflection; using System.Windows.Forms; using OpenTK.Examples.Properties; +using System.Threading; namespace Examples { @@ -333,7 +334,11 @@ namespace Examples } Trace.WriteLine(String.Format("Launching sample: \"{0}\"", e.Attribute.Title)); Trace.WriteLine(String.Empty); - main.Invoke(null, null); + + Thread thread = new Thread((ThreadStart)delegate { main.Invoke(null, null); }); + thread.IsBackground = true; + thread.Start(); + thread.Join(); } catch (TargetInvocationException expt) {