在Windows上有效,但在MAC上无效 [英] Works on Windows, but not on MAC

查看:169
本文介绍了在Windows上有效,但在MAC上无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发一个C ++/Qt/VTK应用程序,该应用程序应同时在Windows(XP)和MAC上运行.代码库是相同的,我们只是单独进行编译/构建.现在,奇怪的是,它在Windows上(在发布"模式下)可以正常工作;但偶尔会在MAC上崩溃(10.6.x-我们拥有Snow Leopard).已使用Valgrind检查内存问题,但没有.

欢迎所有解决此问题的想法/建议.没有其他人甚至可以开始猜测它可能是什么.您需要向应用程序中添加一些日志记录/调试代码,并收集足够的信息以识别失败的原因和原因.


We are developing a C++ / Qt / VTK application which is supposed to run on both Windows (XP) and MAC. The code base is the same, and we simply do separate compilation / building. Now, the strange thing is that it works fine on Windows (in Release mode); but sporadically crashes on the MAC (10.6.x - Snow Leopard is what we have). Have used Valgrind to check for memory issues, and there are none.

All thoughts / suggestions to resolve this are welcome.

解决方案

The problem could be anything and anywhere; there is no way anyone else can even begin to guess what it may be. You need to add some logging/debug code to your application and gather sufficient information to identify where and why it is failing.


这篇关于在Windows上有效,但在MAC上无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆