Re: objc_exception_throw prior to launching nib file

2009-04-22 Thread jmunson
You shoul post your code as it is difficult to discern your problem with the way you are describing things. In other words: Cannot perform operation without a managed object context What operation is being performed that could require an moc? If I set a breakpoint: In what, on what?

Re: objc_exception_throw prior to launching nib file

2009-04-22 Thread Daniel Child
OK, I've set those commands and got this. Running… Cannot perform operation without a managed object context Value can't be converted to integer. (gdb) I'm not sure why it thinks it needs one BEFORE I do anything. I described things slightly incorrectly. If I set a breakpoint: the window (f

Re: objc_exception_throw prior to launching nib file

2009-04-22 Thread Nick Zitzmann
On Apr 22, 2009, at 2:20 PM, Daniel Child wrote: (gdb) po *(int *)($ebp+8) Cannot access memory at address 0x1 (gdb) Something's still not right here. On Intel 32, $ebp+8 points to the first argument in a function call, which would be the NSException object passed into objc_exception_thr

Re: objc_exception_throw prior to launching nib file

2009-04-22 Thread Daniel Child
You're right. (gdb) po $rdi Value can't be converted to integer. (gdb) po *(int *)($ebp+8) Cannot access memory at address 0x1 (gdb) On Apr 22, 2009, at 4:16 PM, Nick Zitzmann wrote: On Apr 22, 2009, at 2:13 PM, Daniel Child wrote: Well, I think so. I thought all Core2 Duos run 64-bit. Ye

Re: objc_exception_throw prior to launching nib file

2009-04-22 Thread Nick Zitzmann
On Apr 22, 2009, at 2:13 PM, Daniel Child wrote: Well, I think so. I thought all Core2 Duos run 64-bit. Yes, but what is the architecture of your program? Is it i386 or is it x86_64? If it's the former, then it is not an Intel 64 program. If you don't know, then it's probably i386. Also

Re: objc_exception_throw prior to launching nib file

2009-04-22 Thread Daniel Child
Well, I think so. I thought all Core2 Duos run 64-bit. The build settings are for Xcode 3.1, OS 10.5. Are there any other settings I should be concerned with? Also, tried the Intel 32-bit, and that also said it couldn't be converted to an integer. On Apr 22, 2009, at 3:31 PM, Nick Zitzman

Re: objc_exception_throw prior to launching nib file

2009-04-22 Thread Nick Zitzmann
On Apr 22, 2009, at 1:28 PM, Daniel Child wrote: It says Running… (gdb) po $rdi Value can't be converted to integer. (gdb) Are you sure your program is running as Intel 64? The $rdi register is only available to X86-64 applications. In 32-bit Intel apps, arguments to functions are p

Re: objc_exception_throw prior to launching nib file

2009-04-22 Thread Daniel Child
It says Running… (gdb) po $rdi Value can't be converted to integer. (gdb) On Apr 22, 2009, at 2:56 PM, Nick Zitzmann wrote: On Apr 22, 2009, at 12:36 PM, Daniel Child wrote: Since none of the methods below are things I have written, I'm not sure where to go from here. How can I go abo

Re: objc_exception_throw prior to launching nib file

2009-04-22 Thread Nick Zitzmann
On Apr 22, 2009, at 12:36 PM, Daniel Child wrote: Since none of the methods below are things I have written, I'm not sure where to go from here. How can I go about finding out what is causing this? Start by printing the exception to the console using the po command when the exception is

objc_exception_throw prior to launching nib file

2009-04-22 Thread Daniel Child
Hi All, I have a Core Data app that I am trying to debug. If I simply run it, the main window loads fine. If I try to run in debug mode, an exception is thrown before even loading the main nib. This problem seems to have started when I tried to put manual breakpoints in the code. Now, just