Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

waterskier2007

macrumors 68000
Original poster
Jun 19, 2007
1,877
243
Novi, MI
So I am doing some PDF rendering and in a spot where I draw some text in a rect (NSString's drawInRect:withAttributes), I get an exception breakpoint triggered, but if I hit continue it moves on and everything works fine. I can't figure out why this is happening.

The exception seems like it hits multiple times (I have to hit continue three times) but it is only executing that line once (it's not in a loop). How can I figure out what is causing this?
Thanks!
 
So I am doing some PDF rendering and in a spot where I draw some text in a rect (NSString's drawInRect:withAttributes), I get an exception breakpoint triggered, but if I hit continue it moves on and everything works fine. I can't figure out why this is happening.

The exception seems like it hits multiple times (I have to hit continue three times) but it is only executing that line once (it's not in a loop). How can I figure out what is causing this?
Thanks!

The instruction pointer (the green bar) should show the exception on the right hand side - does it provide any hints?
 
Unfortunately no, not really. I have included a screenshot of the exception when it is hit (sorry for the odd dimensions)

n8WDbec.png


There no information when I hover over it or anything like that
 
So after doing some reading online I ran in the simulator and issued

Code:
po *(id *)($esp + 4)

to the debugger after the 'exception' was thrown, to get back more information about the exception, and I got back

Code:
error: Couldn't apply expression side effects : Couldn't dematerialize a result variable: couldn't read its memory

after googling that, I got nowhere but it seems like it is something on a deeper level than I will have access to
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.