Hi Andy, On Tue, Oct 26, 2010 at 06:42:51AM +0800, Andy Stewart wrote: > After i test, i found segfault is gone after i replace 'wrapNewGObject' > with 'makeNewGObject' in function 'fileQueryInfo' > Can you test Segfault.hs with my solution?
It fixes the segfault ,-) > Yes, GIO documentation said use g_object_unref free FileInfo, but i > doubt documentation is wrong. > > Since GIO code is complicated, for safety, i suggest replace all > "wrapNewGObject mkFileInfo" with "makeNewGObject" except 'fileInfoNew' > and 'fileInfoDup' in FileInfo.chs I agree. I think you can even keep "makeNewGObject" on "fileInfo{New,Dup}", just in case. These functions should not be used very ofen and even if they introduce leaks, the problem will remain very small (unlike with pixbufs). I wish I could find an explication for this issue, but for the time being, I will put this aside. Perhaps I will look at the others demos program (in gtk and pango) and check if they are working. I'm very paranoiac and I really would like to have more test codes or demo programs. thanks for your help, 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