Forum Xamarin Xamarin.iOS

Where does GC live?

iphooiphoo BYMember ✭✭

As I know iOS does susspend all application threads when it moves to background state.

Questions:
1) Does GC live in one of these "regular" application threads? That means that memory that are not freed (not used any more, but not GC-ed yet) before going to background will be not available for other/foreground applications?

2) If 1 is true, is it safe to call GC.Collect() in applicationDidEnterBackground callback ? (suppose it is in any case)

Tagged:

Best Answers

Answers

  • iphooiphoo BYMember ✭✭

    up

  • iphooiphoo BYMember ✭✭

    up

  • iphooiphoo BYMember ✭✭

    So why GC.Collect() call on moving to background is not part of Xamarin.iOS itself (i.e. base UIApplicationDelegate)?

  • iphooiphoo BYMember ✭✭

    When you say "it will purge the app to make room" you mean terminate the app?

Sign In or Register to comment.