Xcode 3.2 断点错误消息
我正在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它看起来像是图形库中的错误。快速修复方法是在重绘显示后立即放置一个 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.