On Thu, Sep 11, 2014 at 10:39:05PM +0800, Jactry Zeng wrote:
2014-09-11 22:15 GMT+08:00 Huw Davies huw@codeweavers.com:
An obvious question is then: what happens to the range object if you release all references to the txtdoc object? Does the range object still remain functional?
No, the program will crash when calling a function of ITextRange after released all references of txtDoc.
Nice. Well hopefully nothing depends on that, so we don't have to follow their broken implementation. I think you should implement it as I suggested and don't bother adding tests for the exact refcount number (nothing should care about the exact number anyway).
Huw.