Hi Andy ! I've retested my preceding attached file (Segfault.hs) and it still segfaults on my system :(
Are you sure it works on yours ? Even with 'ghc -threaded --make' ? I also looked again at "fileEnumeratorNextFile". Keeping "makeNewGObject" on the returned GFileInfo's effectively avoid the segmentation fault in FileManager.hs, but does this not create a leak, like for example if we toy with "directoryGetFileInfos": [gio/demo/FileManager.hs: line ~47] -- Get file infos under specify directory. infos <- directoryGetFileInfos "/" replicateM_ 1000 $ do infos' <- directoryGetFileInfos "/" mapM_ (print . fileInfoGetDisplayName) infos' ?? Now, even if it's a flaw, it's not a disaster since it becomes visible only in extreme cases (when accessing more than 100k files with GIO). regards, /John ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Gtk2hs-devel mailing list Gtk2hs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel