Search found 3 matches

by coderdave
Sat Nov 29, 2014 8:57 am
Forum: C++ Development
Topic: Button event bludgeons the 'this' pointer
Replies: 2
Views: 1000

Re: Button event bludgeons the 'this' pointer

Thanks, your information was spot on. I appreciate the help, and the problem is solved.

As you suggested, I was using as a wrong value of eventSink. I wasn't specifying it all, relying on it to default. By making it explicit, the issue seems to have resolved.
by coderdave
Sat Nov 29, 2014 3:07 am
Forum: Open Discussion
Topic: Location in memory of class object and member objects (C++)
Replies: 2
Views: 3874

Re: Location in memory of class object and member objects (C

I know a pointer to a struct will work in the manner you describe (size, ordering as declared, etc..). I honestly forgot about classes, but I kind of want to say "don't hold your breath." Somewhere in the recesses of my failing memory I recall classes doing their own thing. I think it has ...
by coderdave
Sat Nov 29, 2014 12:50 am
Forum: C++ Development
Topic: Button event bludgeons the 'this' pointer
Replies: 2
Views: 1000

Button event bludgeons the 'this' pointer

Inside my class' button event handler, the " this " pointer suddenly takes a new address. After the function finishes, the value appears to be miraculously restored. More annoying than anything, because all the local vars in the class are rendered inaccessible because they are an offset of...