Re: pgadmin3-1.6.1 - core dumped - Work around

From: Dhanaraj M <Dhanaraj(dot)M(at)Sun(dot)COM>
To: Dave Page <dpage(at)postgresql(dot)org>
Cc: Zdenek(dot)Kotala(at)Sun(dot)COM, pgadmin-hackers(at)postgresql(dot)org
Subject: Re: pgadmin3-1.6.1 - core dumped - Work around
Date: 2006-12-13 14:54:33
Message-ID: 45801429.3090800@sun.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers


> Well, again the trace appears to show that
> frmQuery::OnChangeConnection is in the stack - have you even touched
> the select connection combo box?
>
> One thing you might try is changing your GTK theme. We have had odd
> reports on some Linuxes that using certain themes will result in GTK
> errors on the console and sometimes a crash.
>

Hi Dave

I got the work around for the crash.
I am trying to fix this problem.
I think the problem is not with pgAdmin.

This is the flow of the control during the crash..

After opening the query tool...
src/base/pgConnBase.cpp:
pgConnBase::pgConnBase(
pgSetBase *pgConnBase::ExecuteSet
src/frm/frmQuery.cpp
void frmQuery::OnChangeConnection(

After closing the query tool...
src/base/pgConnBase.cpp
void pgConnBase::Close()
src/frm/frmQuery.cpp
void frmQuery::OnChangeConnection(
(IS IT THE RIGHT CALL??????)

This is not the final solution, because after closing this query tool
Add server wnd is opened. But no crash!!
I will have to do more tests and get back to you..
Any comments??

Work around
===========

int dlgSelectConnection::Go(pgConn *conn, ctlComboBoxFix *cb)
{
cbConnection=cb;

if (mainForm != NULL)
{
treeObjectIterator servers(mainForm->GetBrowser(),
mainForm->GetServerCollection());^M
pgServer *s;^M

while ((s=(pgServer*)servers.GetNextObject()) != 0)^M
{

cbServer->Append(s->GetIdentifier(), (void*)s);

+ if(s->GetConnected())
+ { continue;}

if (s->GetConnected() && s->GetConnection()->GetHost()
== conn->GetHost() && s->GetConnection()->GetPort() == conn->GetPort())^M
{

cbServer->SetSelection(cbServer->GetCount()-1);^M
remoteServer = s;^M
}^M
} ^M
cbServer->SetFocus();^M
}^

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dhanaraj M 2006-12-13 15:38:07 Re: pgadmin3-1.6.1 - core dumped - Work around
Previous Message Zdenek Kotala 2006-12-13 12:19:47 Re: pgagent linker problem