Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2003:
[Freeciv-Dev] Re: (PR#4632) Re: (PR#5394) Connect Dialog updated
Home

[Freeciv-Dev] Re: (PR#4632) Re: (PR#5394) Connect Dialog updated

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#4632) Re: (PR#5394) Connect Dialog updated
From: "Daniel L Speyer" <dspeyer@xxxxxxxxxxx>
Date: Wed, 27 Aug 2003 19:47:19 -0700
Reply-to: rt@xxxxxxxxxxxxxx

Fixed!

I was trusting GTK_IS_WINDOW to sort out bad pointers, but it doesn't 
quite seem to work 100% of the time.  This version takes care of things 
manually.

AFAIK, this fixes all outstanding issues.

--Daniel Speyer

Christian Knoke wrote:

>On Wed, Aug 27, 2003 at 09:32:04AM +0000, Daniel Speyer wrote:
>  
>
>>What's *(GtkWindow*)(perwin[0])
>>Maybe that'll be a clue.
>>
>>Also, if you go up one frame, what's the value of lines?
>>    
>>
>
>#0  0x080aecf1 in change_server_options (opts=0x834c67d "") at
>repodlgs.c:1232
>1232      }else if (permwin[pregame_flag] &&
>(gdb) print *(GtkWindow*)(perwin[0])
>No symbol "perwin" in current context.
>(gdb) print *(GtkWindow*)(permwin[0])
>$1 = {bin = {container = {widget = {object = {klass = 0x6c6c7566, flags =
>1684107892, 
>          ref_count = 2053731173, object_data = 0x65}, private_flags = 49, 
>        state = 0 '\000', saved_state = 0 '\000', name = 0x11 <Address 0x11
>out of bounds>, 
>        style = 0x83c3608, requisition = {width = 0, height = 16452},
>allocation = {x = 71, 
>          y = 71, width = 73, height = 0}, window = 0x82fcf58, parent =
>0x107e8}, 
>      focus_child = 0x1, border_width = 49864, need_resize = 0, resize_mode
>= 2, 
>      reallocate_redraws = 1, resize_widgets = 0x0}, child = 0x0}, title =
>0x82b4748 "", 
>  wmclass_name = 0x1600a0 <Address 0x1600a0 out of bounds>, 
>  wmclass_class = 0xd9021e <Address 0xd9021e out of bounds>, type = 1442044, 
>  focus_widget = 0x83a5f18, default_widget = 0x83c2978, transient_parent =
>0x0, 
>  resize_count = 0, allow_shrink = 0, allow_grow = 0, auto_shrink = 0,
>handling_resize = 0, 
>  position = 0, use_uposition = 0, modal = 0, window_has_focus = 0, 
>  window_has_pointer_focus = 0}
>(gdb) print lines
>No symbol "lines" in current context.
>(gdb) up
>#1  0x08075b8c in handle_page_msg (packet=0x834c330) at packhand.c:843
>843       if (packet->x == 0 && change_server_options(lines)){
>(gdb) print lines
>$2 = 0x834c370 "barbarians          *2      (0,4)"
>(gdb) 
>
>
>  
>


Attachment: conndlg12.diff.bz2
Description: conndlg12.diff.bz2


[Prev in Thread] Current Thread [Next in Thread]