Hi all,
  I'm a newcomer to Haskell programming (even thought already had quite 
a lot of functional languages background) and I wanted to start using 
wxHaskell.
  I installed the MacPort version of wxWidgets:
 > joyce:wx mattia$ port installed | grep -i wx
 >   wxWidgets @2.8.7_1 (active)
 >   wxWidgets-devel @2.8.7-rc1_0 (active)
  Then used the darcs version of wxHaskell. I'm running Mac OS X with 
Leopard.

Everything goes just fine, but crash when I run the hello app:

joyce:wx mattia$ ghc -package wx HelloWorld.hs -o hellojoyce:wx mattia$ 
/usr/local/wxhaskell/bin/macosx-app -v hello creating resource:
 > /Developer/Tools/Rez -t APPL Carbon.r  -o hello
creating app directories:
 - hello.app
 - hello.app/Contents
 - hello.app/Contents/MacOS
 - hello.app/Contents/Resources
creating package info:
 - hello.app/Contents/PkgInfo
done.

joyce:wx mattia$ open hello
LSOpenFromURLSpec() failed with error -10828 for the file 
/Users/mattia/prog/haskell_develop/wxhaskell/wxhaskell/samples/wx/hello.


Running "hello" directly, without "open", leads to no great results too:

joyce:wx mattia$ ./hello
23:04:17: Debug: wxColour::Set - couldn't set to colour string 'LIGHT GREY'
[Debug] 23:04:18: Adding duplicate image handler for 'PNG file'
[Debug] 23:04:18: Adding duplicate image handler for 'JPEG file'
[Debug] 23:04:18: Adding duplicate image handler for 'TIFF file'
[Debug] 23:04:18: Adding duplicate image handler for 'GIF file'
[Debug] 23:04:18: Adding duplicate image handler for 'PNM file'
[Debug] 23:04:18: Adding duplicate image handler for 'PCX file'
[Debug] 23:04:18: Adding duplicate image handler for 'Windows icon file'
[Debug] 23:04:18: Adding duplicate image handler for 'Windows cursor file'
[Debug] 23:04:18: Adding duplicate image handler for 'Windows animated 
cursor file'
[Debug] 23:04:18: Adding duplicate image handler for 'TGA file'
[Debug] 23:04:18: Adding duplicate image handler for 'XPM file'

After that, it stops and nothing happens.



Any suggestion, or idea about what the error means? I saw older posts 
complaining about similar problems, but I found no useful material: 
perhaps I just didn't notice it!

-- 
Mattia "RedGlow" Belletti
http://thick.foschia.info - http://anacrusi.splinder.com


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

Reply via email to