Force destroy Widget

LALLIER Cedric (EXT TEAMLOG) ext.teamlog.cedric.lallier at sncf.fr
Wed Dec 2 01:41:19 PST 2009


Hi,

 

I don't understand why the old widget is not destroyed. How can I force the destruction?

 

/* Create widget */

wid_form = XtVaCreateManagedWidget("test_form", xmFormWidgetClass, Root_wid, NULL);

printf("create wid_form : %p\n", wid_form);

 

/* Destroy widget */

XtDestroyWidget(wid_form);

printf("destroy wid_form : %p\n", wid_form);

 

/* Re create widget */

wid_form_element_rame = XtVaCreateManagedWidget("test_form", xmFormWidgetClass, Root_wid, NULL);

printf("recreate wid_form : %p\n", wid_form);

 

/* Call widget */

wid_form = XtNameToWidget(Root_wid, "test_form");

printf("call wid_form : %p\n", wid_form);

 

 

Result : 

 

 

create wid_form : 0x8a6be28

destroy wid_form : (nill)

recreate wid_form : 0x8a61ec8

call wid_form : 0x8a6be28  <-- Why this is the old widget ????

 

 

Thx

Cédric

 

-------
Ce message et toutes les pièces jointes sont établis à l'intention exclusive de ses destinataires et sont confidentiels. L'intégrité de ce message n'étant pas assurée sur Internet, la SNCF ne peut être tenue responsable des altérations qui pourraient se produire sur son contenu. Toute publication, utilisation, reproduction, ou diffusion, même partielle, non autorisée préalablement par la SNCF, est strictement interdite. Si vous n'êtes pas le destinataire de ce message, merci d'en avertir immédiatement l'expéditeur et de le détruire.
-------
This message and any attachments are intended solely for the addressees and are confidential. SNCF may not be held responsible for their contents whose accuracy and completeness cannot be guaranteed over the Internet. Unauthorized use, disclosure, distribution, copying, or any part thereof is strictly prohibited. If you are not the intended recipient of this message, please notify the sender immediately and delete it. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20091202/dacdbace/attachment.html>


More information about the xorg mailing list