任何使用C ++ AMP都会导致内存泄漏. [英] Any use of C++ AMP causes memory leaks.

查看:71
本文介绍了任何使用C ++ AMP都会导致内存泄漏.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VS 2012 Update3.由于内存泄漏,我不得不从生产代码中删除对C ++ AMP的所有使用.

I am using VS 2012 update 3. I have had to remove all use of C++ AMP from production code due to the memory leaks. When will this problem be fixed?

推荐答案

首先,很抱歉您不得不从项目中删除C ++ AMP代码.

First of all, I am very sorry that you have had to remove C++ AMP code from your project.

我们唯一知道的泄漏是由缓存的DirectX/DXGI对象引起的,如博客文章中所述 使用C ++ AMP的无害DXGI警告..请注意,这些对象也将报告为CRT泄漏,这一事实并没有提及这是意外的遗漏.但是,如博客中所述,它们应完全无害于 多数情况下-并且在生产代码中是安全的,因为它们的占用空间在应用程序的整个生命周期中都是恒定的,并且一旦应用程序退出,资源就会被OS放弃.此外,此特定问题已在 Visual Studio 2013预览,请参见 amp_uninitialize  可以为您提供帮助.

The only leaks that we are aware of are caused by the cached DirectX/DXGI objects, as described in the blog post Harmless DXGI warnings with C++ AMP. Note that these objects will also be reported as CRT leaks, the fact that the post does not mention it is an unintended omission. They however, as described on the blog, should be completely harmless in most cases - and safe in the production code, as their footprint is constant throughout the lifetime of the application, and the resources will be relinquished by OS once the application exits. Furthermore, this particular issue has been fixed in Visual Studio 2013 Preview, please see if amp_uninitialize helps in your case.

如果您正在观察上面未解决的其他泄漏,请告知我们.

Please let us know if you are observing other leaks that are not addressed by the above.


这篇关于任何使用C ++ AMP都会导致内存泄漏.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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