MonoTouch: App killed for low mem, Why? Live bytes allocation 5 MB top

前端 未结 3 1963
暗喜
暗喜 2021-01-03 10:34

My iPad app is developed in MonoTouch, because I wanted to avoid all the memory management hell, but it doesn\'t seem the case. On the simulator everything works fine, but w

3条回答
  •  滥情空心
    2021-01-03 11:10

    I had problems with UIImage.FromFile. My app is loading a lot of png images using a task, and showing it in the main thread.

    I added a GC.Collect in the background task, but it hasn't fixed the problem. I had to remove the background task, do all the stuff in the main thread AND call GC.Collect. It seems that Image.Dispose is not releasing the image memory :(

    But it doesn't work when you have another task, so i had to remove it :(

    Yes it is not working....

提交回复
热议问题