应用程序疯狂中断
我有一个完美运行的 C++(Android 原生)应用程序。然后我引入了一些 try { } catch {} 语句,如果我调试该应用程序,它会疯狂地中断随机、正确的代码片段。 如果我运行应用程序,它会因中断而停止 Zygote (app_process) 会抱怨信号 2,即 SIGINT。
在添加大量 try-catch 子句之前,我的应用程序中有一些运行良好的 try-catch 子句。此时我确信有很多嵌套的 try-catch 块,也许 Android 操作系统无法处理那么多嵌套块的中断?
我想提一下,在 Windows 上,相同的代码可以完美运行。
I had a perfectly running C++ (Android native) application .. then I introduced some try { } catch {} statements and if I debug the application it interrupts like crazy in random, correct pieces of code.
If I run the application it stops for an interrupt Zygote (app_process) complains about signal 2, which is SIGINT.
I had a few try-catch clauses in my application that was running fine before I added a ton of try-catch clauses. At this point I am sure that there are a lot of nested try-catch blocks, maybe the Android OS can't handle that many interrupts for nested blocks ?
I would like to mention that on Windows the same code runs flawlessly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
进行全面重建。您的调试信息可能已关闭。这是根据 OP 中的信息可以给出的最佳答案。
Do a full rebuild. Your debug info may be off. That's the best answer one can give with the info in the OP.