Re: pgadmin3-1.6.1 - core dumped - Work around - Mailing list pgadmin-hackers

From Dave Page
Subject Re: pgadmin3-1.6.1 - core dumped - Work around
Date
Msg-id 4581AD5C.5070202@postgresql.org
Whole thread Raw
In response to Re: pgadmin3-1.6.1 - core dumped - Work around  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Responses Re: pgadmin3-1.6.1 - core dumped - Work around  (Dave Page <dpage@postgresql.org>)
List pgadmin-hackers
Zdenek Kotala wrote:

> Problem is with cbSSL. This combo box is empty and constructor of
> dlgServer try to setup selection on last used value - zero for first
> time -, but there is no content of list. Newer version of gtk probably
> are able to handle this situation but version used by s10 tries to touch
> into empty list.

Yeah, I found that right before I left the office - just logged in again
to work-up a fix.

> My question is why this dialog is not filed into the constructor like
> cbDatabase?

I guess you mean the combo, not dialog. short answer, I'm not sure.
That's not so much the problem though - it seems that trying to select
any list item when there aren't any is causing a crash. Having commented
out cbSSL.SetSelection(), I just find it crashes in the same way in
another dialogue.

I'm just working up what I hope will be a viable fix to the control
itself. I'll forward a patch once I'm happy.

Thanks, Dave.


pgadmin-hackers by date:

Previous
From: Zdenek Kotala
Date:
Subject: Re: pgadmin3-1.6.1 - core dumped - Work around
Next
From: Dave Page
Date:
Subject: Re: pgadmin3-1.6.1 - core dumped - Work around