Hi all
This bug has also been discussed on
wxhaskell-users@lists.sourceforge.net, see
http://sourceforge.net/mailarchive/forum.php?thread_id=9096517&forum_id=34197
I created, compile, and executed the following program:
-- Compile with ghc -fglasgow-exts
-- --make NonModalDialogTest.hs -o
-- NonModalDialogTest
module Main where
import Graphics.UI.WX
main = start $ do
f <- frame [ text := "Some program" ]
d <- dialog f [ text := "Some dialog" ]
set d [ visible := True ]
it worked fine. It brought up two empty windows and
when I closed the windows the program terminated
properly. However when I make the following changes
(see comments for changed lines):
module Main where
import Graphics.UI.WX
main = start $ do
f <- frame [ text := "Some program" ]
w <- get f parent -- added line
-- regarding line below: changed f to w
d <- dialog w [ text := "Some dialog" ]
set d [ visible := True ]
the program also brings up two windows. However when I
close the windows the program do _not_ terminate
properly - It just hangs. I have to manually ctrl-c
ctrl-c in the shell, to terminate the program.
I am using Debian Linux, ghc 6.4, and WxHaskell 0.9.4.
My WxHaskell runs
on top of GTK.
/Mads Lindstrøm
Logged In: YES
user_id=1015006
OK, I can see that SourceForge ruined the indentation of my
program. But the indentation shows fine on the mailinglist.
Logged In: YES
user_id=242465
Originator: NO
Mads, does the darcs version still misbehave? Assigning to you to reproduce :-)
Logged In: YES
user_id=1015006
Originator: YES
Yes, it still misbahaves.
Logged In: YES
user_id=242465
Originator: NO
Many thanks! I have darcs sent a test case based on your bug report. I think we should get in the habit of creating self-explanatory eyeball tests in the bugs/ directory when people post stuff to the bugtracker or the mailing list. Even better, we should start encouraging people to do the same.
Bug confirmed present on wxHaskell darcs tip (0.12.5) with Windows XP.
It is still the same on Windows 8.1, with GHC 7.10.2 (32 bit), wxHaskell 0.92.1, wxWidgets 3.0.2
Attached properly formatted code