View Single Post
Old 02-26-2020, 12:54 PM   #22
Human being with feelings
Join Date: Dec 2019
Posts: 29

Originally Posted by olilarkin View Post
been doing some investigation here

I've learnt its very important to get _CrtDumpMemoryLeaks(); in the right place!

There is a bunch of heap-allocated stuff that gets stored statically in IGraphics using a class we have called StaticStorage<>. It's not till all those have been destructed that _CrtDumpMemoryLeaks() can be called.

Bad news is with skia it still prints quite a lot of leaks, but i am wondering if there are similar things within skia that might not be getting dealloc'd by the time of calling _CrtDumpMemoryLeaks()
Excellent and thanks Oli!, I found some minor inconveniences caused by not taking the time to analyze in depth the infrastructure changes, mainly between IPlug 1 to 2.

Meanwhile Skia is still leaking, but most are related to the controls in which I use fonts (tabs style, or that use labels etc)
some isolated leak seems to have to do with rotation etc.

But I'm not good at tracking the exact line where the leak happens.

It is unfortunate because Skia seems the best option, between speed and quality.
Nikolaos is offline   Reply With Quote