アプリケーション自体は2000行の長さであるため、ここにコードを貼り付けるのは意味がありません。特に、受け取ったユーザーの1人が、コードのどの部分が問題を引き起こしているのかについてのヒントを与えないためです。
ちなみに、このアプリは、通常数百行以下のデータとその他のコントロールを表示するdatagridviewを備えた単なるWindowsフォームです。クラッシュする前は、datagridviewの各行のセルを非常にゆっくりとロードしていました。(しかし、他のユーザーが同じ問題を経験したことはありません。)
例外テキストは以下のとおりです。誰かがそれを確認して、私のコードが間違っていることが原因であるか、またはこの例外を経験したユーザーの特定の設定と互換性がないことが原因であるかどうかを教えてもらえますか?
以下の説明は、メモリが破損していることを示しています。ユーザーのコンピューターのRAMが不良であることを意味しますか?
************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Drawing.SafeNativeMethods.Gdip.GdipDrawRectangleI(HandleRef graphics, HandleRef pen, Int32 x, Int32 y, Int32 width, Int32 height)
at System.Drawing.Graphics.DrawRectangle(Pen pen, Int32 x, Int32 y, Int32 width, Int32 height)
at System.Windows.Forms.ControlPaint.DrawFlatCheckBox(Graphics graphics, Rectangle rectangle, Color foreground, Brush background, ButtonState state)
at System.Windows.Forms.ControlPaint.DrawFlatCheckBox(Graphics graphics, Rectangle rectangle, ButtonState state)
at System.Windows.Forms.ControlPaint.DrawCheckBox(Graphics graphics, Int32 x, Int32 y, Int32 width, Int32 height, ButtonState state)
at System.Windows.Forms.ControlPaint.DrawCheckBox(Graphics graphics, Rectangle rectangle, ButtonState state)
at System.Windows.Forms.CheckedListBox.OnDrawItem(DrawItemEventArgs e)
at System.Windows.Forms.ListBox.WmReflectDrawItem(Message& m)
at System.Windows.Forms.ListBox.WndProc(Message& m)
at System.Windows.Forms.CheckedListBox.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)