From: Christian H. <chr...@gm...> - 2005-07-21 11:15:14
|
Am 21.07.2005 um 04:23 schrieb Wolfgang Thaller: >> now that the installation finally succeeded, the real problems >> begin... >> >> I wrote a small application with a "Quit" button. Before the >> application displays that it quits, I want it to perform some >> fancy action: call the dummy method "dummy" on itself. (Ok, this >> is just a simplified version of what I really want...) >> >> To make it more interesting, it uses the >> "performSelectorWithObject" method on itself. When I do this, my >> application crashes. >> > > Please stand by while I try to reproduce the problem... does > running the program from gdb turn up anything at all? > I could locate the problem a bit better: The problem is, that I import a module where (what I forgot) a global MVar is declared, like module Test where import Control.Concurrent.MVar import System.IO.Unsafe testVar :: MVar Int testVar = unsafePerformIO (newMVar 0) The module has so far not been used at all in my application, but the import alone seems to interfere somehow with the Cocoa framework. This problem remains when compiling with the -threaded option. Cheers, Chris |