[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]
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
Send corrections/additions to the FAQ Maintainer:
Last Update May 13 2007 @ 00:23 AM