ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: RE : [Ethereal-dev] Access violation failure on exit with VC++ Debugger?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "RABRET Laurent FTRD/DAC/ISS" <laurent.rabret@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 25 Sep 2003 16:12:06 +0200
Title: [Ethereal-dev] Access violation failure on exit with VC++ Debugger?

I described this bug yesterday and submitted a patch fixing it.

 

Here's the explanation I sent:

 

A system exit caused Ethereal to use a dangling pointer leading to an
app crash. I.E. a system exit caused do_quit() to return FALSE. Hence,
the top_level->window was deleted but not necessarily set to NULL. With
this patch, do_quit always returns TRUE and it's therefore safe to take
geometry's info after gtk_main (the system destroys Windows). In
addition, I'm not sure it is recommended to test the window pointer of
the widget. I prefer to use the GTK_WIDGET_NO_WINDOW() macro.

 

 
-------- Message d'origine--------
De: Lars Ruoff [mailto:lars.ruoff@xxxxxxxxxxxxxxxxxx]
Date: jeu. 25/09/2003 14:15
À: Ethereal-Dev
Cc:
Objet: [Ethereal-dev] Access violation failure on exit with VC++ Debugger?

Wondering about the following behaviour:
When debugging with MS Visual C++6, i get an access violation failure on
exit:
gtk/main.c (2443): in function main: gdk_window_get_size(top_level->window,
&top_width, &top_height);
top_level->window points to somewhere in deep space.

happens only when debugging ("Go" command from IDE).

(Ethereal 0.9.15, GTK+1.3.0, GLib 1.3.2, Windows 2000 SP4)
any ideas?
Lars

_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev