Re: CVS of 2002-04-19 crashes

On Fri, 19 Apr 2002 14:54:04 +0000 (UTC), ml knorke in-berlin de wrote:

maybe I did sth. stupid, but I'm not able to start dia.  I
get the splash screen and than the crash, because
menu_item_list is NULL, the first time
sheets_optionmenu_create() is called, but is dereferenced.
GDB says:


It seems that sheet_mods_list is NULL, so optionmenu_menu
is empty and gtk_container_children() returns NULL.  This
return value Should be checked, maybe?  Anyway, dia doesn't
seem to find the sheets.

Hmmm.  If you have no sheets, I guess there's going to be problems
with the Sheets and Objects's dialog as you've discovered.  It
wasn't a contingency that even remotely crossed my mind, given
the plethora of sheets that come with dia.

I'll have a look at what needs to be done to make it handle
this situation more gracefully.

Btw. gtk_container_children() is deprecated in GTK2.

Dia is still based in gtk+1.2, considering 2.0 was only released
a month ago.  I for one will be delighted to use non-deprecated
functions when its time to make the upgrade.

Thanks for reporting this and giving a stack trace!  Very helpful.

 - michael -

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