[英]Random get_Font() Exception in my Windows CE(Compact framework ) C# application
当我按任意按钮时,我的C#应用程序中随机出现System.Windows.Forms.Control.get_Font()
异常。 我的Windows CE设备的应用程序,该设备支持.net 3.5 Compact Framework(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
有关更多详细信息,请参考Microsoft以下链接
FIX:在基于Windows Embedded Compact 7的设备上的.NET Compact Framework 3.5应用程序中的字体设置更改
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.