> [1] Could you please try this with wxHaskell from darcs?
>
> You'll need wxWidgets 2.8 for it, though.  I doubt this will fix the
> crash, since I haven't seen anything related in the list of changes,
> but it's worth a shot.

After much hassle i finally managed to build wxwidgets 2.8.8 on windows.
(libjpeg issues, had to use the built-in version. had to recompile
with --enable-mediactrl, because wxhaskell depends on some *media*
functions/constants/whatever even when not given --with-mediactrl
option. and since mingw/msys forces my WXP to leak memory somehow -
memory usage goes up and no process "owns" so much => at least two
reboots for configure && make && make install cycle ... at least
nobody got hurt in the process of venting the frustration. i could use
new chair, though, the old one kinda "broke itself" ;-))))

then, after the --with-mediactrl hiccup, wxhaskell (darcs, pulled
today) compiled (and after some tweaking installed where it should
;-)).

And taskBarIconDelete no longer segfaults, so it gets to
propagateEvent and closes cleanly. YAY ;-)))

-- just to be sure, the minimal case
module Main where

import Graphics.UI.WX
import Graphics.UI.WXCore
import Graphics.UI.WXCore.Image

main :: IO ()
main = start hello

hello :: IO ()
hello = do
  icon <- iconCreateFromFile "someicon.ico" (sz 16 16)
  tbicon <- taskBarIconCreate
  taskBarIconSetIcon tbicon icon "Pokus"

  -- the application frame
  frame         [text := "Test", clientSize := sz 300 200, on closing
:= do {taskBarIconDelete tbicon; propagateEvent}]
  return ()

---------------------------

on linux (sabayon 3.5; wxGTK 2.8.8.1; wxhaskell-darcs from last week)
i get some assertion failures, no window pops up and i have to ctrl-c
the process to death ;-) - each of the sample apps acts the same :

(process:6383): GLib-GObject-CRITICAL **: gtype.c:2248: initialization
assertion failed, use IA__g_type_init() prior to this function

(process:6383): GLib-CRITICAL **: g_once_init_leave: assertion
`initialization_value != 0' failed

(process:6383): Gdk-CRITICAL **: gdk_cursor_new_for_display: assertion
`GDK_IS_DISPLAY (display)' failed

is this my mistake in the build process or bug ?

-------------------------------------------------------------------------
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