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
> [email protected]
> 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.

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to