GHC 6.4.1 and Win32 DLLs: Bug in shutdownHaskell?

Matthew Bromberg mattcbro at
Tue Oct 24 23:49:48 EDT 2006

I'm not sure exactly how to determine which runtime libraries Matlab 6.5 
uses.  However since I am compiling the mex code via Microsoft VC++ 
6.0,  I suspect  that the  Haskell  DLL s   are loaded using the MS VC 
6.0  runtime libraries.   The DLL that contains the interface code 
however is probably loaded using whatever libraries Matlab links to.  
Ultimately they both should just be calling the operating system load 
and unload routines.  How did you resolve your problems?

skaller wrote:
> On Tue, 2006-10-24 at 13:16 -0700, SevenThunders wrote:
>> Here is the promised simple example.  This example will cause an exception
>> when the DLL is unloaded, but it doesn't seem to cause the run time
>> exception that a more complicated example might cause.  This could be
>> because of the very small amount of memory it actually uses.
> I know nothing of Matlab or Haskell linkage .. so do you know 
> which C library they're linked against? It has to be the same one, 
> and it must be dynamic linkage. (Felix build was inconsistent
> and we got similar random behaviour).

More information about the Glasgow-haskell-users mailing list