foreign import PlaySound causing GHCi to crash
Malcolm Wallace
Malcolm.Wallace at cs.york.ac.uk
Fri Feb 5 03:34:44 EST 2010
> foreign import ccall "PlaySound" play :: CString -> Int32 -> Int32 -
> > IO Bool
Is it possible that the foreign function should use the "stdcall"
convention rather than "ccall"?
IIRC, the difference is in who is responsible for cleaning the the
stack after the call returns, which might match one of the symptoms
you see.
Regards,
Malcolm
More information about the Glasgow-haskell-bugs
mailing list