Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are these “non-existant passive grab” warnings?

warnings
0
Posted

What are these “non-existant passive grab” warnings?

0

destroy certain widgets I get a stream of messages Warning: Attempt to remove non-existant passive grab Answer: They are meaningless, and you want to ignore them. Do this (from Kee Hinckley) by installing an XtWarning handler that explicitly looks for them and discards them: static void xtWarnCB(String message) { if (asi_strstr(message, “non-existant passive grab”, TRUE)) return; … They come from Xt, and (W. Scott Meeks): “it’s something that the designers of Xt decided the toolkit should do. Unfortunately, Motif winds up putting passive grabs all over the place for the menu system. On the one hand, we want to remove all these grabs when menus get destroyed so that they don’t leak memory; on the other hand, it’s almost impossible to keep track of all the grabs, so we have a conservative strategy of ungrabbing any place where a grab could have been made and we don’t explicitly know that there is no grab. The unfortunate side effect is the little passive grab warning messages. We’re tr

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.