Re: pgadmin3-1.6.1 - core dumped - Fixed - Mailing list pgadmin-hackers

From Dave Page
Subject Re: pgadmin3-1.6.1 - core dumped - Fixed
Date
Msg-id 4581529F.5030203@postgresql.org
Whole thread Raw
In response to Re: pgadmin3-1.6.1 - core dumped - Fixed  (Dhanaraj M <Dhanaraj.M@Sun.COM>)
List pgadmin-hackers
Dhanaraj M wrote:
> Hi Dave
>
> I dont know whether the problem is with pgAdmin or not.
> But I have a fix for this.
>
> File name:-  src/frm/frmQuery.cpp
>
> void frmQuery::OnChangeConnection(wxCommandEvent &ev)
> {
>     unsigned int sel=cbConnection->GetCurrentSelection();
>
> +  if(!IsVisible())
> +       return;
>
>     if (sel == cbConnection->GetCount()-1)
>     {
>         // new Connection
>         dlgSelectConnection dlg(this, mainForm);
>         int rc=dlg.Go(conn, cbConnection);
> ----------------------------------------------------------------------------
>
> After closing the query tool, this event is called.
> So I am checking whether the window is destroyed already or not.
> Is it the right fix?
> I am testing in different machines(sparc/x-86) and report you soon.
> Please comment on this?

Dhanaraj (and Zdenek). Apologies for not being too responsive over the
last few days - as you may have heard, I'm changing job soon so not only
do I have the fun of handing all my work over to colleagues here, but
I've also been spending time moving some of the PostgreSQL and pgAdmin
project infrastructure to a new datacenter before I lose access to this one.

Anyhoo, I agree that this seems a safe fix for the problem your are
seeing Dhanaraj and have committed it to the 1.6 branch and trunk - thanks.

What still doesn't make sense is why that function is getting called at
all at that point. I can only imagine that wxWidgets is erroneously
firing it when the wxCombo is destroyed.

Regards, Dave

pgadmin-hackers by date:

Previous
From: svn@pgadmin.org
Date:
Subject: SVN Commit by dpage: r5792 - in branches/REL-1_6_0_PATCHES/pgadmin3: . src/frm
Next
From: "Hiroshi Saito"
Date:
Subject: pgAdmin3 snapshots(1.6.2) on OpenSUSE and SUSE Linux Enterprise