The attached code is freezing for me on windows here, and I have
no idea why. Its artificial code that is modelled after a real world
application, where this freeze occured to me for the first time.
Basically its a modal dialog, called from a modal dialog, called
from a frame. The dialogs are constructed as members for the
calling class to avoid construction costs everytime the dialog
is needed.
If I'm not using members, but constructing the dialog everytime I
need it, it won't freeze. However I can't see any reason why the
scheme with one-time construction and many-time-usage shouldn't work.
This freeze does not occur under wxGTK btw, where it works as
expected. Is this a known bug or a known limitation for wxPython
using wxMSW?
Basically its a modal dialog, called from a modal dialog, called
from a frame. The dialogs are constructed as members for the
calling class to avoid construction costs everytime the dialog
is needed.
If I'm not using members, but constructing the dialog everytime I
need it, it won't freeze. However I can't see any reason why the
scheme with one-time construction and many-time-usage shouldn't work.
You can ask on wx-users to be sure but I don't the wxDialogs were meant to
be used this way, but created when needed. The "construction costs" really
are not so much that you have to worry about saving it, are they?
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!
You can ask on wx-users to be sure but I don't the wxDialogs were meant to
be used this way, but created when needed. The "construction costs" really
are not so much that you have to worry about saving it, are they?
No, these costs are no real world issue. However, I do deem this a bug worth
fixing, not? After all, in wxGTK the behaviour *is* as expected, hence
I think its a bug on the MSW side (whether in wxWindows or in Python
I have no idea). Or even if this is not a bug, because wxDialog is
used in a bogos way, it still is differing behaviour on two platforms.
I will prepare an email for wx-users though.
Thanks for your answer,
- Chris
···
On Mon, Jan 14, 2002 at 08:21:24AM -0800, Robin Dunn wrote:
--
Christian Loth
Coder of 'Project Gidayu'
Computer Science Student, University of Dortmund
chris@gidayu.mud.de - http://gidayu.mud.de