[Haskell-cafe] readFile problem
ndmitchell at gmail.com
Mon Jan 8 05:39:30 EST 2007
> I am writing a network server in haskell. Lately I seem to have
> introduced a new bug. On Linux, when a client closes the connection to
> the server, the server dumps core.
Are you using any calls to system? Any libraries which may do funky stuff?
> application.exe: config.xml: openFile: does not exist (No such file or
> I use readFile to read the config file. I tried to print out the
> config file after it is read to make sure that it is completely read.
> I only load this config file exactly once during program
> initialization. The config is used long before the crash. I printed
> the current working dir in the exception handler and there is
> something interesting. Instead of the path to the application, it is
What is the working directory at the begining? Is that really the
working directory? The "\C" at the start isn't the C drive, but some
bizare escape code, I think.
More information about the Haskell-Cafe