RE: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak
RE: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak
- Subject: RE: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak
- From: Dany Golubitsky <email@hidden>
- Date: Tue, 11 Feb 2014 04:06:45 -0500
- Acceptlanguage: en-US
- Thread-topic: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak
Hello Ken!
This code is not called from the main thread. We have a different thread for drawing in order to support better fps rate.
As you can see, there I no autorelease pool here, however, I tried to wrap this function with autorelease pool as described here:
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSAutoreleasePool_Class/Reference/Reference.html
Tried to use both [pool release] and [pool drain].
Had no effect.
Regards
Dany
-----Original Message-----
From: Ken Thomases [mailto:email@hidden]
Sent: Monday, February 10, 2014 19:45
To: Dany Golubitsky
Cc: email@hidden; Shai Shasag
Subject: Re: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak
On Feb 10, 2014, at 11:08 AM, Dany Golubitsky wrote:
> To make it simple - here is the entire code: ...
Is this code being called on the main thread? On a background thread? Are you sure there's an autorelease pool in place and that it is being drained on a regular basis?
Is anything logged to the console?
Regards,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden