简体   繁体   English

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

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

I got randomly System.Windows.Forms.Control.get_Font() exception in my C# application when i press any button. 当我按任意按钮时,我的C#应用​​程序中随机出现System.Windows.Forms.Control.get_Font()异常。 My application for Windows CE device which support .net 3.5 compact framework(windows 6 OS) 我的Windows CE设备的应用程序,该设备支持.net 3.5 Compact Framework(Windows 6 OS)

I have used third party(BeeMobile Toolkit) for custom control 我已使用第三方(BeeMobile Toolkit)进行自定义控制

Exception is like below 异常如下

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()

Anyone have experienced the same issue? 有人遇到过同样的问题吗? Please help me to resolve this issue 请帮我解决这个问题

Below is code and snap for more information 以下是代码和快照,以获取更多信息 在此处输入图片说明

I got Exact issue and related comment. 我收到确切问题和相关评论。 This is Windows CE 6.0 OS issue for resolution we need to upgrade OS from Windows CE 6.0 to Windows CE 7.0 这是Windows CE 6.0 OS的解决方案,我们需要将OS从Windows CE 6.0升级到Windows CE 7.0

For more detail Please refere Microsoft Below Link 有关更多详细信息,请参考Microsoft以下链接

Windows Embedded Compact 7 Windows Embedded Compact 7

FIX: Font setting changes in a .NET Compact Framework 3.5 app on a Windows Embedded Compact 7-based device FIX:在基于Windows Embedded Compact 7的设备上的.NET Compact Framework 3.5应用程序中的字体设置更改

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM