foreign import PlaySound causing GHCi to crash
Seth442
seth.baldwin at comcast.net
Sat Feb 6 18:00:00 EST 2010
Malcolm Wallace wrote:
>
>> 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
> _______________________________________________
> Glasgow-haskell-bugs mailing list
> Glasgow-haskell-bugs at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
>
>
Wow, that fixed the problem!
Thanks!
--
View this message in context: http://old.nabble.com/foreign-import-PlaySound-causing-GHCi-to-crash-tp27414694p27484270.html
Sent from the Haskell - Glasgow-haskell-bugs mailing list archive at Nabble.com.
More information about the Glasgow-haskell-bugs
mailing list