$ ./hidedialog.exe False at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at Test.OnClose(Object o, EventArgs args) at System.Windows.Forms.Form.OnClosed(EventArgs e) at System.Windows.Forms.Form.CheckCloseDialog(Boolean closingOnly) at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.Unsafe NativeMethods.IMsoComponent.FContinueMessageLoop(Int32 reason, Int32 pvLoopData, MSG[] msgPeeked) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.Uns afeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int3 2 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 r eason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason , ApplicationContext context) at System.Windows.Forms.Form.ShowDialog(IWin32Window owner) at System.Windows.Forms.Form.ShowDialog() at Test.Main() OK