我的Windows CE(Compact framework)C#应用程序中的随机get_Font()异常

我的Windows CE(Compact framework)C#应用程序中的随机get_Font()异常,c#,compact-framework,windows-ce,C#,Compact Framework,Windows Ce,当我按下任意按钮时,我的C应用程序中随机出现了System.Windows.Forms.Control.get_Font()异常。我的Windows CE设备应用程序,支持.net 3.5 compact framework(Windows 6操作系统) 我使用了第三方(BeeMobileToolkit)来定制控件 例外情况如下 at Microsoft.AGL.Common.MISC.HandleAr(PAL_ERROR ar) at System.Windows.Forms.Contr

当我按下任意按钮时,我的C应用程序中随机出现了
System.Windows.Forms.Control.get_Font()
异常。我的Windows CE设备应用程序,支持.net 3.5 compact framework(Windows 6操作系统)

我使用了第三方(BeeMobileToolkit)来定制控件

例外情况如下

at Microsoft.AGL.Common.MISC.HandleAr(PAL_ERROR ar)
   at System.Windows.Forms.Control.get_Font()
   at BeeMobile.TransparentControls.TButtonBase.get_Font()
   at BeeMobile.TransparentControls.TButtonBase.DrawText(Graphics gr)
   at BeeMobile.TransparentControls.TVistaButton.RenderButtonBitmap(Bitmap& renderBitmap, InkColor buttonBackground, Color borderColor)
   at BeeMobile.TransparentControls.TVistaButton.get_CurrentImage()
   at BeeMobile.TransparentControls.TButtonBase.Draw(Graphics gxBack)
   at BeeMobile.Common.DoubleBufferingControl.#=qAKWNr500l_h4qDhHRih7lg==()
   at BeeMobile.Common.DoubleBufferingControl.OnPaint(PaintEventArgs e)
   at System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam)
   at System.Windows.Forms.ContainerControl.WnProc(WM wm, Int32 wParam, Int32 lParam)
   at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
   at Microsoft.AGL.Forms.WL.Update(IntPtr hwnThis)
   at System.Windows.Forms.Control.Update()
   at System.Windows.Forms.Control.Refresh()
   at BeeMobile.TransparentControls.TButtonBase.Refresh(Boolean aClearBackBuffer)
   at BeeMobile.TransparentControls.TVistaButton.OnMouseDown(MouseEventArgs e)
   at System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam)
   at System.Windows.Forms.ContainerControl.WnProc(WM wm, Int32 wParam, Int32 lParam)
   at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
   at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
   at System.Windows.Forms.Application.Run(Form fm)
   at BB2000.Program.Main()
有人经历过同样的问题吗? 请帮我解决这个问题


下面是更多信息的代码和快照

我得到了确切的问题和相关评论。 这是Windows CE 6.0操作系统的问题,我们需要将操作系统从Windows CE 6.0升级到Windows CE 7.0

有关更多详细信息,请参考下面的Microsoft链接


发布您的代码…@Benny Machney:谢谢您的支持..请从以下URL获取代码:@–Benny Mackney:有任何解决方案吗?如果您有其他问题,请联系BeeMobile了解自定义控件。