Hello Viktor

Viktor Szakáts wrote:
> 
> It's just a sort of hunch, since I don't have 
> test code and detailed theoretical proof for this, 
> but it looks like existing HBQT_QTPTR_FROM_GCPOINTER() 
> is a wrong concept and should not be used at all.
> 
> It converts GC pointer to a simple one.
> 
> In code it's used for some comparisons, but it's 
> also stored in object vars, which is very dangerous 
> to do as pointer may go invalid anytime, and 
> references aren't counted, etcetc.
> 
> To me it looks like something to be solved differently 
> to avoid GPF time-bombs.
> 

The function is absolutely necessary.
However storing this pointer in an instance variable was wrong.
I fixed it, will be commiting later. For all other purposes
It is used for comparison only.

Regards
Pritpal Bedi

-- 
View this message in context: 
http://old.nabble.com/bug-%3A-HBQT_QTPTR_FROM_GCPOINTER%28%29-tp26676767p26682520.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to