Hi Pritpal,
I would like to have an analysis how Harbour
implements garbage collection in GUI mode, I mean,
where there is no inkey() or similar call ?
With last modifications in HBQT, changing the way
destructors are called, all objects are being deleted
properly. This I verified by accessing the deleted object
again which GPFs. But still memory keeps on growing.
What I suspect is, probably, that this could be related
to GC in Harbour. All objects coming to PRG via "new"
opeartor are returned as a pointer :
hb_retptr( new QSomeObject() )
which are supposed to be covered by GC. But I am
wondering at what point of application loop, Harbour
is performing garbage collection.
AFAIU above won't be covered by GC at all.
In order to let GC collect these pointer automatically
you need to use hb_retptrGC(), along with a callback
to the freeing.
Brgds,
Viktor
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour