After running this lines of code in a loop it somehow eats up all my Mac’s memory.
[code]
s = CGRectMake(0,0,Screen(0).width, Screen(0).height)
p = CGWindowListCreateImage(s, kCGWindowListOptionAll, kCGNullWindowID, kCGWindowImageDefault)
CGImageRelease§[/code]
I isolated the relevant lines of codes. CGRectMake and CGWindowListCreateImage are soft declares for OS X CoreGraphics.
Can it be, that CGImageRelease is not able to free up Memory when I call the sub CGImageRelease§ ?