Top Document: Motif FAQ (Part 9 of 9) Previous Document: 317) Why doesn't XtNameToWidget (widget, "MyName") work? Next Document: 319) How can an application manage events on multiple displays? See reader questions & answers on this topic! - Help others by sharing your knowledge 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 User Contributions:Top Document: Motif FAQ (Part 9 of 9) Previous Document: 317) Why doesn't XtNameToWidget (widget, "MyName") work? Next Document: 319) How can an application manage events on multiple displays? Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page [ Usenet FAQs | Web FAQs | Documents | RFC Index ] Send corrections/additions to the FAQ Maintainer: kenton@rahul.net (Ken Lee)
Last Update March 27 2014 @ 02:11 PM
|
Comment about this article, ask questions, or add new information about this topic: