Re: crash in FC2 - Mailing list pgadmin-support

From Ivan Nejgebauer
Subject Re: crash in FC2
Date
Msg-id 41495264.6000703@uns.ns.ac.yu
Whole thread Raw
In response to crash in FC2  ("Diego A. Gil" <diego@adminsa.com>)
Responses Re: crash in FC2  ("Diego A. Gil" <diego@adminsa.com>)
Re: crash in FC2  (Andreas Pflug <pgadmin@pse-consulting.de>)
List pgadmin-support
Diego A. Gil wrote:
> Hi,
>
> I am having some strange behavior in Fedora Core 2. I compiled a cvs
> version, checked out today 16 september. When I try to add a new table,
> or database, etc, pgadmin3 crash without any notice or warning, without
> logging anything.
>
> A new bug ?.

It's a side effect of the fix for the FindFocus bug. The crash you
describe happened to me, too. Try the attached patch (not sure if that's
the right fix, but it works for me.)

i.

--- src/ui/frmMain.cpp.old    Wed Sep 15 09:51:54 2004
+++ src/ui/frmMain.cpp    Wed Sep 15 13:44:27 2004
@@ -509,6 +509,8 @@
     if (data->IsCollection())
     {
         wxWindow *win=wxWindow::FindFocus();
+        if (!win)
+        return data;
         if (win == listViews)
         {
             if (listViews->GetSelection())

pgadmin-support by date:

Previous
From: "Diego A. Gil"
Date:
Subject: crash in FC2
Next
From: Ivan Nejgebauer
Date:
Subject: Patch: view data for tables/views on double click