Help GC in mono droids using mvvmCross

I am working with a mono droid using the mvvmcross framework provided by slodge. However, I am having memory problems. I am deleting bitmaps in the ondestroy methods, and I am wondering if it is possible to help the GC collect unused viewmodels. If you try to set the view mode in action to zero, everything goes to hell, and this is clearly not the right way.

Do you have any suggestions for an approach?

Hi

0
source share
1 answer

The mvx structure tries to make sure that the activity belongs to the view model.

, , , , gc # - , , , , .

, , view viewmodel. :

  • singleton - , http-, - singleton , .

  • viewmodel ( ) - ( )

, . , : , ( , - , mvvm light messenger)

, , , " ", - . , , , - , , .

, . wp7, , , / viewmodel . , , , - , , , [] . , , , , ..

+1

All Articles