Bug 22156 - NRC never trigger GC?
Summary: NRC never trigger GC?
Status: RESOLVED NORESPONSE
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: master
Hardware: PC Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-08-17 22:01 UTC by yxy332
Modified: 2016-05-25 00:51 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description yxy332 2014-08-17 22:01:31 UTC
If I don't check NRC option, Dispose always be called when I Dismiss the ViewCtrl.
But if the NRC is checked, Dispose never be called.
The words below is from http://developer.xamarin.com/guides/ios/advanced_topics/newrefcount/
"The reference count extension ensure the managed object stays alive (and prevent its collection) as long as there as the native object is retained by native code." 
I think, even if the object is not referenced in Xamarin Code, there is a object in native code.
But that's a question, when is the object not retained by native code, what's its lifetime?
Comment 1 Prashant manu 2014-08-18 10:50:08 UTC
Could you please provide us the test steps you followed. If possible please
attach a small complete project that demonstrates this behavior.
Comment 2 Sebastien Pouliot 2016-05-25 00:51:26 UTC
We have not received the requested information. If you are still experiencing this issue please provide all the requested information and re-open the bug report. Thanks!