Exceptions
Reuben Thomas
rrt1001 at cam.ac.uk
Tue Nov 14 16:11:20 EST 2000
> I just installed ghc-4.08.1 on a Win2k computer. Then I tried to compile a
> program that uses exceptions. Compilation succeeds, but running the program
> causes a "Application Error" dialog to appear. It says "The application
> failed to initialize properly (0xc0000005). Click on OK to terminate the
> application.". Here is the Haskell program:
>
> --
> module Main(main) where
>
> import Exception
>
> main = catchAllIO (putStrLn (head ([] :: [String])))
> (\e -> putStrLn "hi" )
>
> --
>
> Compiled it with
>
> ghc-4.08.1 -i/apps/ghc/lib/imports/lang -syslib lang Main.hs
This should be OK, but as Christian Lescher says, you can just say "-package
lang" rather than all the gumph you have.
The error message looks like a fairly typical Windows RTS problem. It could
be that I just missed something in my recent round of fixes. I'm afraid I'm
away at a DevLab in Redmond at the moment, so I'll check it next week when I
return. The only thing I can suggest for now is to reinstall GHC unless you
really have *just* installed it; I updated the InstallShield on about
November 6th.
--
http://sc3d.org/rrt/ | competent, a. underpromoted
More information about the Glasgow-haskell-bugs
mailing list