Windows Application の起動時のエラーのメモ
かぶだいくんを起動したらなぜか起動中に例外が出てしまった。原因不明。.NET Framework 2.0 の環境。
System.ArgumentNullException はハンドルされませんでした。 Message="値を Null にすることはできません。\r\nパラメータ名: key" Source="System" ParamName="key" StackTrace: 場所 System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value) 場所 System.Windows.Forms.RadioButton.PerformAutoUpdates(Boolean tabbedInto) 場所 System.Windows.Forms.RadioButton.set_Checked(Boolean value) 場所 System.Windows.Forms.RadioButton.OnClick(EventArgs e) 場所 System.Windows.Forms.RadioButton.OnMouseUp(MouseEventArgs mevent) 場所 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) 場所 System.Windows.Forms.Control.WndProc(Message& m) 場所 System.Windows.Forms.ButtonBase.WndProc(Message& m) 場所 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 場所 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 場所 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 場所 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) 場所 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) 場所 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) 場所 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) 場所 System.Windows.Forms.Application.Run(Form mainForm) 場所 Kabudai.Program.Main() 場所 C:\Projects\Kabudai\Program.cs:行 16 場所 System.AppDomain._nExecuteAssembly(Assembly assembly, String args) 場所 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String args) 場所 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() 場所 System.Threading.ThreadHelper.ThreadStart_Context(Object state) 場所 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 場所 System.Threading.ThreadHelper.ThreadStart() InnerException:
また出た。なんでだ?
...どうやら、ラジオボタンのイベントハンドラーの中で NullPointerException が出ると、それをキャッチできないことがあるようだ。なんでだろう?