#22 WxHaskell do not terminate properly

confirmed
open-accepted
None
4
2015-11-27
2005-12-03
No

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

Discussion

  • Mads Lindstrřm

    Mads Lindstrřm - 2005-12-07

    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.

     
  • Eric Kow

    Eric Kow - 2008-02-17
    • assigned_to: nobody --> supermule
    • status: open --> pending
     
  • Eric Kow

    Eric Kow - 2008-02-17

    Logged In: YES
    user_id=242465
    Originator: NO

    Mads, does the darcs version still misbehave? Assigning to you to reproduce :-)

     
  • Mads Lindstrřm

    Mads Lindstrřm - 2008-02-17

    Logged In: YES
    user_id=1015006
    Originator: YES

    Yes, it still misbahaves.

     
  • Mads Lindstrřm

    Mads Lindstrřm - 2008-02-17
    • status: pending --> open
     
  • Mads Lindstrřm

    Mads Lindstrřm - 2008-02-17
    • assigned_to: supermule --> nobody
     
  • Eric Kow

    Eric Kow - 2008-02-17

    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.

     
  • Eric Kow

    Eric Kow - 2008-02-17
    • milestone: --> confirmed
     
  • Jeremy O\'Donoghue

    • assigned_to: nobody --> jodonoghue
    • status: open --> open-accepted
     
  • Jeremy O\'Donoghue

    Bug confirmed present on wxHaskell darcs tip (0.12.5) with Windows XP.

     
  • Henk-Jan van Tuyl

    It is still the same on Windows 8.1, with GHC 7.10.2 (32 bit), wxHaskell 0.92.1, wxWidgets 3.0.2

     
  • Henk-Jan van Tuyl

    • Priority: 5 --> 4
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks