【问题标题】:Random get_Font() Exception in my Windows CE(Compact framework ) C# application我的 Windows CE(紧凑框架)C# 应用程序中的随机 get_Font() 异常
【发布时间】:2017-07-21 05:48:10
【问题描述】:

当我按下任何按钮时,我的 C# 应用程序中随机出现 System.Windows.Forms.Control.get_Font()exception。我的 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()

有人遇到过同样的问题吗? 请帮我解决这个问题

下面是代码和快照以获取更多信息

【问题讨论】:

  • 发布您的代码...
  • @Benny Machney:感谢支持..请从以下 URL 获取代码:drive.google.com/file/d/0B0qMt3HfXgJPVEZycDdEaU1PV1k/view
  • @– Benny Mackney: 有什么解决办法吗?
  • 这里和您的其他问题可能需要联系 BeeMobile 以了解那里的自定义控制。

标签: c# compact-framework windows-ce


【解决方案1】:

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

更多详情请参考微软下方链接

Windows Embedded Compact 7

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

【讨论】:

    猜你喜欢
    • 2011-08-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-03-25
    • 1970-01-01
    相关资源
    最近更新 更多