Parent document is top of "Motif FAQ (Part 9 of 9)"
Previous document is "321) Why doesn't XtNameToWidget (widget, "MyName") work?"
Next document is "323) How can an application manage events on multiple displays?"
322) Why does my callback's client data structure contain incorrect
values when the callback is called? I created a structure and used a pointer
to it as callback client data.
[Last modified: Apr 95]
Answer: If your structure is declared as automatic, the callback will
probably not be executed within the structure's scope, so the pointer to the
structure will become invalid. You can avoid this problem by declaring your
structure external or by allocating with malloc or (in C++) new.
Ken Lee, http://www.rahul.net/kenton/
Parent document is top of "Motif FAQ (Part 9 of 9)"
Previous document is "321) Why doesn't XtNameToWidget (widget, "MyName") work?"
Next document is "323) How can an application manage events on multiple displays?"