Camouflage 1.5

A new version is out and it fixes a very crazy bug that could consume hell of a lot ram when icons were shown and hidden often.

First I was fiddling with the drawing stuff because i suspected NSImage to cache the files for some strange reason. I tried everything, change caching options, different loading ways, i even tried to use CoreImage, but it didn’t help much.

Today i was running some tests about how much ram it needs to draw several images into a simple view, and the usage was pretty constant. I thought that I should try to not close the windows I use to hide the icons, but instead make them transparent. But then I thought that i maybe don’t release the old windows, and just allocate new ones.

Well the code was correct, but the windows were not released anyway. I checked the retainCount of the windows that i closed and it was way to high, so i searched for the place where they were retained and also found one. I accidently retained the window in its content-view. This view would have released that window when itself would be deallocated, but this circle obviously would never work out. Now the retain is removed and it works flawless 🙂

Lesson learned: Never think the system is wrong. The error is sitting in front of the computer in most cases. 😉

Karsten

For more information about Camouflage and the download link visit the product page

Comments are closed.