Xcode 3.2 断点错误消息

发布于 2024-11-27 19:31:26 字数 500 浏览 0 评论 0原文

我正在 Xcode 3.2 中为 CS106B 编写一个 C++ 程序,并且我已经开始将此错误消息输出到控制台窗口:

Wed Aug  3 15:46:44 cljs-macbook-pro-17.local StanfordCS106BAssignment2[3543] <Error>:   
kCGErrorIllegalArgument: CGSDeviceUnlock: Invalid device lock
Wed Aug  3 15:46:44 cljs-macbook-pro-17.local StanfordCS106BAssignment2[3543] <Error>: 
kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.

我想我一定是使用了编译器出于某种原因不喜欢的断点做了一些事情,但是我'我不确定什么。有什么办法让它停止这样做吗?

I'm writing a C++ program in Xcode 3.2 for CS106B and I've started getting this error message output to the console window:

Wed Aug  3 15:46:44 cljs-macbook-pro-17.local StanfordCS106BAssignment2[3543] <Error>:   
kCGErrorIllegalArgument: CGSDeviceUnlock: Invalid device lock
Wed Aug  3 15:46:44 cljs-macbook-pro-17.local StanfordCS106BAssignment2[3543] <Error>: 
kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.

I think I must have done something with breakpoints that the compiler doesn't like for some reason, but I'm not sure what. Is there any way to get it to stop doing that?

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

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

发布评论

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

评论(1

帅气尐潴 2024-12-04 19:31:27

它看起来像是图形库中的错误。快速修复方法是在重绘显示后立即放置一个 WaitForMouseDown() (如果它导致崩溃)。我尝试只使用睡眠几毫秒,但这似乎没有效果。

It looks like a bug in the graphics library. Quick fix is to put a WaitForMouseDown() right after you redraw the display if it is causing it to crash. I tried just using sleep for a few milliseconds, but that didn't seem to do it.

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