Memory issue from 2017 and 2018

Hi,
I’m developing a project for Hololens.Trying the same code from 2017.3.0 to 2018.2.6 I’ve noticed about this problem:
exporting with 2017 I’ve no problem with memory, while with 2018 I’ve a memory leak,

I’ve attached 2 picture where I see that on Visual studio profiler the GC garbage works well and is present (2017)


while it’s missing in the 2018 exported.

The only difference, more than the Unity version, is that the 2017 version use the .Net backend, meanwhile the 2018 version uses the IL2CPP backend.

Is there a way to “enable” the GC collect also with IL2CPP? I suppose it’s already enabled but I don’t see any advantage using the GC.Collect() function in my code.

Thanks

Hi Gabrio,

We will need a little more info. Have you tried using the Unity Memory Profiler tool? We could take a look if you can provide a repro project for us.