Motif callback function

Sorry to post motif question here. Even though my question is about Motif, it comes from my project of OpenGL with Motif.

When i try to pass a structure pointer as the client_data of one callback function in another callback function, I always got “segmentation fault” and I can’t get correct value of each elements in that data structure. On the other hand, if I call the same callback function and pass the same pointer as client_data in main, that means here is only one level callback, it’s no problem at all.

Anybody knows about the memory principle of the callback function in Motif?

Thanks a million.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.