>>> BTW, I see such calls in many QT related calls in SVN: >>> qObj:pPtr := 0 >>> qObj:pPtr := NIL >>> >>> These can be optimized simply to: >>> qObj:pPtr := NIL >>> >> I used this method to release object instantly. >> This approach I took was since begining. My be my experiments >> at that point with Qt were showing that until I set the :pPtr to some other >> value ( not NIL ) only then I could see object relaesed. >> NIL was delaying them for some later time, may be due to GC nature. >> So I continued with it. > > For me it sounds like some hacks are implemented in HBQT to accept numeric > values instead of pointers, thus leading numeric 0 value have different > behaviour than NIL value.
I reckon this could only be true if :pPtr would not be simple DATA but some SETGET method. But it's DATA (declared in hbqt_misc.prg). Brgds, Viktor _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour