我最近下载了gtk并编写了以下代码。
main :: IO ()
main = do
initGUI
window <- windowNew
onDestroy window mainQuit
widgetShowAll window
mainGUI
此程序导致错误消息并且ghci退出。
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x68530000, BaseAddress 0x68570000, RegionSize 0x22000, State 0x1000
C:\Program Files (x86)\Haskell Platform\2014.2.0.0\bin\ghc.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
我希望找到解决这个问题的方法。谢谢!