[英]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.