Re: disable Gtk warnings



El sÃb, 07 de 02 de 2004 a las 18:44, Murilo Tuvani escribiÃ:
I donÂt agree with the *will* crash because IÂm producing an
aplication and I sometimes apear some warnigs one case, when I pass
NULL to a pointer after make gtk_widget_destroy(), if I donÂt pass it
will fail in tests IÂll make after and if I pass apear the gtk
warnings!

It seems that you're using, anywhere in your code, this pointer after
destroying the widget.

This way, when you don't equals to NULL the pointer, some function is
called with an invalid widget pointer, and it don't warns.

When you equals it to NULL the function is called with a NULL pointer so
the warnings appear.

The hint is to find where in your code you're calling a function with
and invalid widget pointer and fix it.

This way you'll get two benefits: your program will be more robust and
better written, you problem with the warnings will be solved :)

A gdb session will help.


regards
-- 
Iago Rubio                http://www.iagorubio.com          
GPGkey pgp.rediris.es id 0x909BD4DD  fingerprint =
D18A B950 5F03 BB9A DD89  AA75 FEDF 1978 909B D4DD
********** iago.rubio(AT)hispalinux.es  **********     
--------------------------------------------------

Attachment: signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]