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 logging the value of self, rather than relying on the debugger display. The debugger can sometimes be wrong.

Otherwise, make sure the constructor of your C++ class isn't trashing memory. Sounds like writing past the bounds of a stack variable.

If you're doing placement new, you might also be messing that up.

You could try compiling with -fstack-protector-all to try to detect stack smashers closer to where/when they happen.

Regards,
Ken





_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to