Hi John,

John Obbele <john.obb...@gmail.com> writes:

> 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' ?
Yes, i got segfault after i add flag "-threaded". 

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?

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

Cheers,

  -- Andy



------------------------------------------------------------------------------
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

Reply via email to