Hi all,

trying out wxhaskell i modified the basic hello world apllication to
show an taskbar icon, and to pop a message on right-click
http://hpaste.org/9390 .

The problem is that when closing the window, the application segfaults
("taskBarIconDelete tbicon" does the segfaulting part).
I'm running GHC 6.8.3 / wxHaskell 0.10.3 binary.

When i get rid of the "on closing := do taskBarIconDelete tbicon", the
application does not close (as it probably feels yet another window is
opened).

What modification would be needed to get it to exit correctly ?
Is it possible to somehow filter the closing event and just hide the
window when the X / close window button is pressed  ("on closing :=
skipCurrentEvent" has no effect ...)?

Thanks, J.

PS: As tutorials for wxHaskell are pretty scarce right now, I thought
about "tutorializing" the app afterwards (it should be just little
phone number/door number/name/computer name search app for internal
use), would anyone be willing to look through it after i'm done with
it before i unleash it upon the unsuspecting world (destroying peace
and beauty all aroung and forcing poor haskellers to gouge their eyes
out in act of self-defense ;-)) ?

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

Reply via email to