• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak (From: Ken Thomases <email@hidden>)
 >RE: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak (From: Dany Golubitsky <email@hidden>)
 >Re: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak (From: Ken Thomases <email@hidden>)
 >RE: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak (From: Dany Golubitsky <email@hidden>)
 >Re: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: dispatch_apply strange results
  • Next by Date: Re: EULA presentation requirements?
  • Previous by thread: Re: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak
  • Next by thread: Re: Cocoa and OS X Security Frameworks
  • Index(es):
    • Date
    • Thread