Is it possible to use NSZombieEnabled in Monotouch?

旧城冷巷雨未停 提交于 2019-12-11 01:28:26

问题


I've been reading up about the environmental variable NSZombieEnabled and I wondered whether it is currently possible to use this in a Monotouch runtime? If not, is there a suitable alternative that I'm just glazing over?

The reason I ask is because it may be helpful to find any leaks one may have in their app - I've tried to use Instruments with limited success and would like to try every possible option to ensure I have a nice and stable app.

Edit

I misunderstood what they were used for (it is Monday morning after all...) - but I would still be curious to know whether it is possible, or because of C#'s automated GC, whether they would be relevant?


回答1:


MonoTouch automatically enables NSZombieEnabled when running on the simulator debugger.

There is currently no way to enable this on the device.



来源:https://stackoverflow.com/questions/4920860/is-it-possible-to-use-nszombieenabled-in-monotouch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!