积极答复者
在 Windows Store app 环境下如何发现 C++ 内存泄漏

问题
答案
-
你好
C++程序在商店应用中包了一层CX的外壳,从原理上来说,C++/CX 也是可以被工具定位到的。
我建议你升级到VS2013版本,现在不是有一个VS2013 Community嘛,我正在用那个,免费的,而且功能强大,VS2013 也是可以写VS2012 的代码,同时用VS2013的话将会有一些新的API可以使用啦。
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 lihuipeng49 2014年12月5日 13:27
全部回复
-
你好 慧鹏,
我对 CrtSetDbgFlag 不是很熟悉,不过在Windows Store App 里面一般常用检测内存泄漏的办法是:
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later. -
我的VS版本是2012
在我的菜单上看到的东西与你的不一样。
我用 Start Performance Analysis 启动程序后,在结果中没有内存泄露报告。- 已编辑 lihuipeng49 2014年11月27日 3:15
-
内存检测貌似是VS2013自带的新工具。
在VS2012里面需要用其他工具, 比如: http://blogs.msdn.com/b/webapps/archive/2012/11/23/troubleshooting-memory-leaks-in-windows-store-apps.aspx
<font color="0099FF"><THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED></font><br/> Thanks<br/> MSDN Community Support<br/> <br/> Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.
-
你好
C++程序在商店应用中包了一层CX的外壳,从原理上来说,C++/CX 也是可以被工具定位到的。
我建议你升级到VS2013版本,现在不是有一个VS2013 Community嘛,我正在用那个,免费的,而且功能强大,VS2013 也是可以写VS2012 的代码,同时用VS2013的话将会有一些新的API可以使用啦。
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 lihuipeng49 2014年12月5日 13:27
-
你指的是 Visual Assist嘛?这个我不清楚,不过貌似VS2013里面集成了很多新功能,有些可以替代VA,同时Bing有一个VSX的助手貌似也不错。
关于VS相关的问题,我建议你可以去对应的VS论坛发讨论帖吧。
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.