我的 Windows CE(紧凑框架)C# 应用程序中的随机 get_Font() 异常

Random get_Font() Exception in my Windows CE(Compact framework ) C# application

当我按下任何按钮时,我的 C# 应用程序随机出现 System.Windows.Forms.Control.get_Font() 异常。我申请的 Windows 支持 .net 3.5 compact framework 的 CE 设备(windows 6 OS)

我使用第三方(BeeMobile Toolkit)进行自定义控制

异常情况如下

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 OS 的解决方案问题,我们需要将 OS 从 Windows CE 6.0 升级到 Windows CE 7.0

更多详情请参考微软下方Link

Windows Embedded Compact 7

FIX: Font setting changes in a .NET Compact Framework 3.5 app on a Windows Embedded Compact 7-based device