[英]Irrlicht Mac OS X crash
I'm trying to get Irrlicht running on Mac OS X, but when I try to run the "Demo" project, I see a screen with some options, but as soon as I click something, I get a lldb error for the following line of code: 我试图让Irrlicht在Mac OS X上运行,但是当我尝试运行“ Demo”项目时,我看到了一个带有一些选项的屏幕,但是当我单击某些内容时,我就得到了以下行的lldb错误代码:
[Window setIsVisible:FALSE];
It's line 554 of file CllrDeviceMacOSX.mm, and it gives this error in about every example I try to run 这是文件CllrDeviceMacOSX.mm的554行,并且在我尝试运行的每个示例中都给出了此错误
My system: 我的系统:
It appears that the NSWindow object Window
is being released before the call to [Window setIsVisible:FALSE];
似乎在调用
[Window setIsVisible:FALSE];
之前已释放NSWindow对象Window
[Window setIsVisible:FALSE];
. 。
Looking at Apple's documentation ( NSWindow isReleasedWhenClosed ) this is the expected behaviour as by default NSWindow objects are automatically released when closed. 查看Apple的文档( NSWindow isReleasedWhenClosed ),这是预期的行为,因为默认情况下,关闭时会自动释放NSWindow对象。
As a workaround add: 解决方法:
[Window setReleasedWhenClosed:FALSE];
after the Window = [[NSWindow alloc].....
calls in CllrDeviceMacOSX.mm (there are two of them). 在
Window = [[NSWindow alloc].....
在CllrDeviceMacOSX.mm中调用(其中有两个)。 I do not know enough about Irrlicht to know if this is a valid fix. 我对Irrlicht的了解不足,无法知道这是否有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.