RE: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak

2014-02-11 Thread Dany Golubitsky
19:45 To: Dany Golubitsky Cc: cocoa-dev@lists.apple.com; 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 thr

Re: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak

2014-02-10 Thread Ken Thomases
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

RE: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak

2014-02-10 Thread Dany Golubitsky
ts.apple.com; Shai Shasag Subject: Re: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak On Feb 10, 2014, at 2:16 AM, Dany Golubitsky wrote: > Hello Ken and thanks for your answer! You're welcome. > 1) SBitmapImageRep is actually NSBitmapImageRep. N is just ge

Re: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak

2014-02-10 Thread Ken Thomases
On Feb 10, 2014, at 2:16 AM, Dany Golubitsky wrote: > Hello Ken and thanks for your answer! You're welcome. > 1) SBitmapImageRep is actually NSBitmapImageRep. N is just get lost in Copy. > Sorry. Ah, I should have figured. > 2) I tried both with release and without release of newContext. Same

RE: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak

2014-02-10 Thread Dany Golubitsky
- From: Ken Thomases [mailto:k...@codeweavers.com] Sent: Sunday, February 09, 2014 18:49 To: Dany Golubitsky Cc: cocoa-dev@lists.apple.com Subject: Re: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak On Feb 9, 2014, at 4:56 AM, Dany Golubitsky wrote: > I am having this part

Re: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak

2014-02-09 Thread Ken Thomases
On Feb 9, 2014, at 4:56 AM, Dany Golubitsky wrote: > I am having this part of code that gives me major memory leak: > >SBitmapImageRep* textRep = [[NSBitmapImageRep alloc] > > initW

NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak

2014-02-09 Thread Dany Golubitsky
I am having this part of code that gives me major memory leak: SBitmapImageRep* textRep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL pi