[moderator] Re: Moderated post on self going out of scope

2010-01-20 Thread Scott Anguish
The post was rejected, not for content, but for size. In a nutshell, images aren’t really appropriate for a mailing list that reaches thousands of people. In the future everyone should just post the picture someplace, and then include a link to it. thanks scott On Jan 18, 2010, at 10:17 PM,

Re: Moderated post on self going out of scope

2010-01-19 Thread David Blanton
Yes, the C++ Class is in a BSD Static library. I am checking the compiler options etc now. I'll let you know the result. -db On Jan 18, 2010, at 10:09 PM, Ken Thomases wrote: On Jan 18, 2010, at 9:50 PM, David Blanton wrote: So I set stack-protector-all as "other C++ flags" and got _sta

Re: Moderated post on self going out of scope

2010-01-18 Thread Ken Thomases
On Jan 18, 2010, at 9:50 PM, David Blanton wrote: > So I set stack-protector-all as "other C++ flags" and got _stack_chk_fail > > > So this means the C++ constructor is corupting the stack? Sounds like it. I think the backtrace should indicate where the corruption was detected. Is the C++ cl

Re: Moderated post on self going out of scope

2010-01-18 Thread David Blanton
So I set stack-protector-all as "other C++ flags" and got _stack_chk_fail So this means the C++ constructor is corupting the stack? -db On Jan 18, 2010, at 8:28 PM, Ken Thomases wrote: On Jan 18, 2010, at 9:17 PM, David Blanton wrote: In a view IBAction I instance a C++ class. As soon as t

Re: Moderated post on self going out of scope

2010-01-18 Thread David Blanton
Oh I forgot to do -fstack-protector-all where do I set that? On Jan 18, 2010, at 8:28 PM, Ken Thomases wrote: On Jan 18, 2010, at 9:17 PM, David Blanton wrote: In a view IBAction I instance a C++ class. As soon as the class is instanced, self in the variables window, goes to 0x0 ! Try lo

Re: Moderated post on self going out of scope

2010-01-18 Thread David Blanton
Ok. The C++ constructor does nothing more than assign a member variable by calling a function. And, the NSLog of self breaks as well! Hmmm ! On Jan 18, 2010, at 8:32 PM, David Blanton wrote: Good tips Ken ... I am on it! On Jan 18, 2010, at 8:28 PM, Ken Thomases wrote: On Jan 18, 2010,

Re: Moderated post on self going out of scope

2010-01-18 Thread David Blanton
Good tips Ken ... I am on it! On Jan 18, 2010, at 8:28 PM, Ken Thomases wrote: On Jan 18, 2010, at 9:17 PM, David Blanton wrote: In a view IBAction I instance a C++ class. As soon as the class is instanced, self in the variables window, goes to 0x0 ! Try logging the value of self, rather

Re: Moderated post on self going out of scope

2010-01-18 Thread Ken Thomases
On Jan 18, 2010, at 9:17 PM, David Blanton wrote: > In a view IBAction I instance a C++ class. As soon as the class is instanced, > self in the variables window, goes to 0x0 ! Try logging the value of self, rather than relying on the debugger display. The debugger can sometimes be wrong. Oth

Moderated post on self going out of scope

2010-01-18 Thread David Blanton
I posted this with two images from the debugger but it is awaiting moderator screening. In a view IBAction I instance a C++ class. As soon as the class is instanced, self in the variables window, goes to 0x0 ! This worked fine until I embedded the view win a split view! Now moving the ins