Hi all,

About Qt4 and GLib ...

I've written a multi-threaded app with PGSQL support and have noticed that, although having the app heavily and thoroughly scrutinized with the help of Valgrind to cover for any possible memory leaks there's still some segfaults.

Things I've noticed:
- the pgsql lib tends to leak...
- no matter how thoroughly you've debugged your app there's always space for the infamous "double free or memory corruption" crash...

I've been launching my app preceded with GSLICE=always_malloc and ever since not a single crash yet...
So I can only assume there's something very wrong with QT and GLib ...

There also a reference about disabling GLib at http://qtnode.net/wiki?title=Glib_Event_Loop

So the point here is:
Should one always resort to the above envvar or simply disable GLib altogether when running multi-threaded apps?

And more importantly:
Could someone share his/hers experience and insight in the matter and possibly some tips?

Thanks in advance,
Pedro Doria Meunier.