【问题标题】:error exception in .Net CF 3.5 framework using windows ce and vs 2008.Net CF 3.5 框架中使用 windows ce 和 vs 2008 的错误异常
【发布时间】:2017-02-22 09:18:00
【问题描述】:

我在 Windows 窗体应用程序上使用 C# 在 VS 2008 上使用 Windows CE 进行编码。当我尝试通过串行连接将参数发送到电子设备时,突然在我的 windows CE 设备上出现一个奇怪的弹出窗口:

异常代码:0x80000002 地址代码:0x40caff30 模块导致 错误:mscoree3_5.dll 偏移量:0x0004ff30 在 ArrayList.GetEnumerator() 在 Application2.RunMessageLoop(Boolean showform) 在 Application2.Run(Form mainForm, Boolean Application2.Run(Form) 中的 runAsSingletonApp, Boolean displayMainForm) mainForm) 中的 Program.Main()

每次打开表单或通过串口发送数据时,它都会随机出现。

【问题讨论】:

  • 更新:调试时出现相同的弹出窗口,异常代码相同,异常地址为 0x40caf520,偏移量:0x0004f520。在 ModbusTrabsport.ReadResponse[T]() 中的 ModbusRtuTransport.Read(Int32 计数)

标签: c# exception embedded .net-3.5 windows-ce


【解决方案1】:

我解决了这个问题。异常的根源是由于固件管理的缓冲区数组中缺少大小。我通过简单地在固件中扩展缓冲区的大小来解决它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-04
    • 2018-12-08
    • 2011-11-02
    • 1970-01-01
    • 2011-01-09
    • 2011-06-21
    相关资源
    最近更新 更多