Skip site navigation (1) Skip section navigation (2)

Re: pgadmin3-1.6.1 - core dumped - Work around

From: Dave Page <dpage(at)postgresql(dot)org>
To: Zdenek Kotala <Zdenek(dot)Kotala(at)sun(dot)com>
Cc: Dhanaraj M <Dhanaraj(dot)M(at)sun(dot)com>, pgadmin-hackers(at)postgresql(dot)org
Subject: Re: pgadmin3-1.6.1 - core dumped - Work around
Date: 2006-12-15 10:13:30
Message-ID: 4582754A.2060502@postgresql.org (view raw or flat)
Thread:
Lists: pgadmin-hackers
Zdenek Kotala wrote:
>> I'm still not sure how you're getting into that code when you close 
>> the form though...
> 
> The root cause is destructor of frmQuery dialog. It removes all 
> connection from combo box exclude last item - "new connection". Each 
> deletion invoke frmQuery::OnChangeConnection event and the 
> OnChangeConnection method invokes "new connection dialog" in the last 
> step. And because there are some empty combo boxes on this dialog, gtk 
> generates core.

Ah, of course - well spotted.

> My suggestion is disable event generation for cbConnection in the 
> destructor.

Agreed. Can one or both of you test the attached patch please?

Thanks, Dave.

Attachment: ev.diff
Description: text/plain (1.8 KB)

In response to

Responses

pgadmin-hackers by date

Next:From: Dhanaraj MDate: 2006-12-15 11:42:29
Subject: Re: pgadmin3-1.6.1 - core dumped - Work around
Previous:From: Zdenek KotalaDate: 2006-12-14 20:49:22
Subject: Re: pgadmin3-1.6.1 - core dumped - Work around

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group