1

Visual Studio 2010 を使用して、C# で Windows フォーム アプリケーションを作成しました。これには、複数のページを持つタブ コントロールがあります。すべてのページは Mono で正しく動作しますが、1 つを除いて、クリックするとアプリケーションが終了し、以下に表示されるエラーが表示されます。ページが描画され始め、その後失敗することがわかります。

1 つの注意: このページにあり、他のページにないアイテムは、 と のみFlowLayoutPanelですProgressBar。他のページにないフォントはありません。以下に表示されますが、ページToolStripMenuItem mentionedにはありません。ToolStrip

どんな助けでも大歓迎です。ありがとう。

System.ArgumentException: null 参照または無効な値が見つかりました [GDI+ ステータス: InvalidParameter]
  /root/mono-3.2.1/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:220 の System.Drawing.GDIPlus.CheckStatus (ステータス ステータス) [0x0009b] で
  System.Drawing.Graphics.GdipMeasureString (IntPtr グラフィックス、System.String テキスト、System.Drawing.Font フォント、System.Drawing.RectangleF& layoutRect、IntPtr stringFormat) [0x00053] で /root/mono-3.2.1/mcs/class /System.Drawing/System.Drawing/Graphics.cs:1953
  /root/mono-3.2.1/mcs/class/System. Drawing/System.Drawing/Graphics.cs:1986
  at (wrapper remoting-invoke-with-check) System.Drawing.Graphics:MeasureString (string,System.Drawing.Font,int,System.Drawing.StringFormat)
  System.Windows.Forms.TextRenderer.MeasureTextInternal (IDeviceContext dc、System.String テキスト、System.Drawing.Font フォント、提案サイズ、TextFormatFlags フラグ、ブール型 useMeasureString) [0x000eb] で /root/mono-3.2.1/mcs/クラス/Managed.Windows.Forms/System.Windows.Forms/TextRenderer.cs:263
  /root/mono-3.2.1/mcs/class/Managed.Windows の System.Windows.Forms.TextRenderer.MeasureText (System.String テキスト、System.Drawing.Font フォント、サイズの提案サイズ、TextFormatFlags フラグ) [0x00000] で。フォーム/System.Windows.Forms/TextRenderer.cs:117
  /root/mono-3.2.1/mcs/class/Managed.Windows の System.Windows.Forms.ToolStripItem.OnParentChanged (System.Windows.Forms.ToolStrip oldParent、System.Windows.Forms.ToolStrip newParent) [0x00000] で。フォーム/System.Windows.Forms/ToolStripItem.cs:1202
  /root/mono-3.2.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItem の System.Windows.Forms.ToolStripItem.set_Parent (System.Windows.Forms.ToolStrip 値) [0x0001a] で.cs:853
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem:set_Parent (System.Windows.Forms.ToolStrip)
  /root/mono-3.2.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemCollection の System.Windows.Forms.ToolStripItemCollection.Remove (System.Windows.Forms.ToolStripItem 値) [0x00035] で.cs:273
  /root/mono-3.2.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItem.cs:962 の System.Windows.Forms.ToolStripItem.Dispose (ブール値の破棄) [0x0003b] で
  /root/mono-3.2.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripDropDownItem.cs:185 の System.Windows.Forms.ToolStripDropDownItem.Dispose (ブール値の破棄) [0x00089] で
  /root/mono-3.2.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripMenuItem.cs:221 の System.Windows.Forms.ToolStripMenuItem.Dispose (ブール値の破棄) [0x00000] で
  /root/mono-3.2.1/mcs/class/System/System.ComponentModel/Component.cs:100 の System.ComponentModel.Component.Finalize () [0x00000] で
4

0 に答える 0