static void Main() { Configuration.EnableObjectTracking = true; var app = new WavesDemo(Process.GetCurrentProcess().Handle); if (!app.Init()) { return; } try { app.Run(); } catch (Exception ex) { MessageBox.Show(ex.Message + "\n" + ex.StackTrace); } }