Thread: modal dialog window freezes pgAdmin3 (tested with 1.8.0 beta3 and 1.6.3)

modal dialog window freezes pgAdmin3 (tested with 1.8.0 beta3 and 1.6.3)

From
Michail Bachmann
Date:
Hello,

when the "View Filtered Rows..." modal dialog window is open, switching to
another application and back to pgAdmin will (seemingly) freeze pgAdmin.

You can reproduce this behaviour by:* Start pgAdmin3 and some other programm* Connect to a database and choose a table*
SelectTools -> View Data -> View Filtered Rows...* Switch to an other application* Switch back to pgAdmin 
Now the main window of pgAdmin is active but will not react to any input.
It seems the input focus is still in the modal window which is unfortunately
inactive and cannot be closed or changed into.

Since other modal dialogs seem to be working fine (e.g. Tools -> Reports ->
Properties report), I think there is a bug in the creation of this dialog
window and not a bug in wx.

I've tested and reproduced this bug with 1.6.3 and 1.8.0 beta3 on Windows 2000
SP4 and XP SP2.

Kind regards,

Michail Bachmann

--
ZE Computer- und Medienservice (CMS) der Humboldt-Universitaet zu Berlin
phone: +49.(0)30.2093.2191                      fax: +49.(0)30.2093.2704      Raum 1065, Unter den Linden 6, D-10099
Berlin,Germany 

Michail Bachmann wrote:
> Hello,
> 
> when the "View Filtered Rows..." modal dialog window is open, switching to 
> another application and back to pgAdmin will (seemingly) freeze pgAdmin. 
> 
> You can reproduce this behaviour by:
>  * Start pgAdmin3 and some other programm
>  * Connect to a database and choose a table
>  * Select Tools -> View Data -> View Filtered Rows...
>  * Switch to an other application
>  * Switch back to pgAdmin
> Now the main window of pgAdmin is active but will not react to any input.
> It seems the input focus is still in the modal window which is unfortunately 
> inactive and cannot be closed or changed into.
> 
> Since other modal dialogs seem to be working fine (e.g. Tools -> Reports -> 
> Properties report), I think there is a bug in the creation of this dialog 
> window and not a bug in wx.

You can use Alt+Tab to switch back to it just fine. The problem is that
the parent for that dialogue is the Edit Grid window (which is initially
hidden), not the main window as it is for the others. Changing that is
some non-trivial - not specifically for that window, but the
architecture of the debugger (which has a similar pre-main window
dialogue) makes it very difficult to change.

Regards, Dave.