[IronPython] Fwd: Locked thread?

Gerard Braad Jr. me at gbraad.nl
Mon Dec 18 12:53:20 CET 2006


Hello,


When I normally use IronPython I have no problems (as embedded or running
scripts) I have no problem. Even in interactive mode it is good. Although
some issues arise when I use Windows Forms or Presentation Framework in
interactive mode. It seems the graphics thread locks all others. So when I
do the following...

>>> from wpf import *
>>> w = Window()
>>> w.Show()
>>> b = Button()
>>> b.Content = "Tickle me..."
>>> w.Content = b
>>> w.Close()

... no window is shown and the taskbar of windows is blocked until the last
Close() statement. Does this have to do with the Thread Apartment IronPython
is running in?

thanks,


Gerard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20061218/c4e5e848/attachment.html>


More information about the Ironpython-users mailing list