为什么我的 Delphi 7 调试器随机决定停止接受某些键盘输入

发布于 2024-07-07 23:02:36 字数 346 浏览 9 评论 0原文

也许这是一个首要问题,因为我在 Firefox 中看到过类似的错误,我想知道如何避免对它们进行编码。

没有明显的原因,功能键、箭头键(以及解除数字锁定的数字键盘)、箭头上的 6 个键和退格键停止工作。 其他所有键似乎都有效,这让我认为这是某种中断问题。 当我重新启动 Delphi 时它再次工作。

这是在 IBM Model M 键盘上,所以肯定不是硬件问题,尽管如果有人更了解的话我就不会那么天真了,我已经在不同的键盘上注意到了这一点。

我实际上对 Delphi 的修复并不感兴趣,我只是想知道如何避免键盘输入错误。 我肯定是在调试充满错误的代码。 我只是想知道为什么它会导致键盘的某些部分出现故障。

Maybe this is an overarching question as I've seen similar bugs in Firefox and I'd like to know how to avoid coding them.

For no apparent reason, the function keys, arrow keys (de-numlocked numpad as well), the 6 keys over the arrows, and backspace stop working. Every other key seems to work leading me to think it's some sort of interrupt issue. It works again when I restart Delphi.

This is on an IBM Model M keyboard so certainly it couldn't be a hardware issue, although if someone knows better I won't be that naive, I've noticed this with different keyboards.

I'm not actually interested in a fix for Delphi, I just would like to know how to avoid keyboard input bugs. I'm most certainly debugging bug laden code. I just wonder why it causes parts of the keyboard to malfunction.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

九公里浅绿 2024-07-14 23:02:36

我怀疑这是德尔福的错。 我用的是Delphi 7,从来没有遇到过这个问题。 我建议你寻找另一个罪魁祸首。

I doubt that it's Delphi's fault. I'm using Delphi 7 and never had this problem. I suggest you look for another culprit.

渡你暖光 2024-07-14 23:02:36

如果在调试器中发生这种情况,则可能无法完成击键的消息处理。 尝试按所有 Alt、Shift、Control 和所有其他此类键,看看问题是否得到解决。

If this happens when in the debugger, it is possible that the message processing for a keystroke is failing to be completed. Try pressing all the Alt, shift, control, and all other such keys to see if the issue clears.

属性 2024-07-14 23:02:36

或者是全局键盘挂钩有问题? 尝试禁用尽可能多的具有全局热键的实用程序。

Or is it a faulty Global Keyboard Hook? Try disabling as much utilities that have global hotkeys.

倥絔 2024-07-14 23:02:36

哈! 我终于弄清楚了它的作用,我安装了 MadExcept,当我使用 Ctrl-Shift-C 自动生成类函数时,我收到了一个 delphi 异常。 我收到一个错误,而且它是一个秘密的 MadExcept 错误。 如果我单击“确定”,它将阻止我输入一些“元”键盘输入。 如果我在该存根类上再次按 Ctrl-Shift-C,则会弹出错误。 我可以点击详细信息,然后它会告诉我有关错误的常规 MadExcept 信息。 我可以点击“详细信息”并继续编程,我的 IDE 又恢复正常了!

Ha! I finally figured out what was doing it, I've got MadExcept installed and when I used Ctrl-Shift-C to autogenerate class functions I was getting a delphi exception. I'd get an error and it was secretly a MadExcept error. If I clicked OK it would stop me from entering some "meta"-keyboard input. If I Ctrl-Shift-C again on that stub class and the error pops up. I can hit Details, then it tells me regular MadExcept info about the error. I can hit Details and continue programming, and my IDE is fine again!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文