可以评估表达式,因为堆栈的顶部有一个负框架

发布于 2025-01-28 09:28:57 字数 282 浏览 0 评论 0原文

我正在C#中创建一个测试站程序,在该程序中,我通过FTDI与UART电缆与测试PCB进行通信。一切都很好,但有时我的应用程序崩溃。 通过调试,我发现崩溃发生在FTDI对象接口识别器上,因为无法评估表达式,因为堆栈顶部有一个负帧。我正在尝试在这一行中要做的是

ftstat = mymod.write(txbuf,bytestowrite,ref numbytesWritten

我可以检查端口是否打开。

我不明白有时候它运行几天,在其他时候,几个小时后才崩溃,同时做同样的事情。

I'm creating a test station program in C# where I communicate with a test pcb through a ftdi to Uart cable. All works fine but sometimes my application crashes.
Through debugging I found that the crash occures on the FTDI object InterfaceIdentifier because the Expression can't be evaluated, because there is a negative frame on top of the stack. What I'm trying to do in this line is

ftStat = myMod.Write(txbuf, bytestowrite, ref numBytesWritten

I can check that the Port is open.

What I don't understand is that sometimes it runs for several days and on other times it just crashes after a few hours while doing the same stuff.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文