FROM : Nathan Vander Wilt
DATE : Mon Apr 14 18:02:28 2008
On Apr 13, 2008, at 7:15 AM, Carter R. Harrison wrote:
> CGContextRef context = [[NSGraphicsContext currentContext]
> graphicsPort];
> CGContextDrawLayerInRect(context, CGRectMake([self frame].origin.x,
> [self frame].origin.y, [self frame].size.width, [self
> frame].size.height), cgback);
>
> cgback is a instance variable pointing to a CGLayer.
>
> So my code works, the correct things are being drawn to my view
> (more or less), but what happens is that after several seconds of
> use, the app crashes and I get an EXC_BAD_ACCESS error.
Can you post more information regarding your cgback variable? How is
it being allocated? That parameter seems to be the most likely culprit.
-nvw
DATE : Mon Apr 14 18:02:28 2008
On Apr 13, 2008, at 7:15 AM, Carter R. Harrison wrote:
> CGContextRef context = [[NSGraphicsContext currentContext]
> graphicsPort];
> CGContextDrawLayerInRect(context, CGRectMake([self frame].origin.x,
> [self frame].origin.y, [self frame].size.width, [self
> frame].size.height), cgback);
>
> cgback is a instance variable pointing to a CGLayer.
>
> So my code works, the correct things are being drawn to my view
> (more or less), but what happens is that after several seconds of
> use, the app crashes and I get an EXC_BAD_ACCESS error.
Can you post more information regarding your cgback variable? How is
it being allocated? That parameter seems to be the most likely culprit.
-nvw
| Related mails | Author | Date |
|---|---|---|
| Carter R. Harrison | Apr 13, 16:15 | |
| Quincey Morris | Apr 13, 18:03 | |
| Carter R. Harrison | Apr 13, 21:50 | |
| Nathan Vander Wilt | Apr 14, 18:02 | |
| Carter R. Harrison | Apr 14, 20:56 | |
| David Duncan | Apr 14, 21:30 | |
| Carter R. Harrison | Apr 14, 21:46 | |
| David Duncan | Apr 14, 22:01 |






Cocoa mail archive

