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