2014-04-17 16:20 GMT+08:00 Nikolay Sivov <bunglehead@gmail.com>:
>
> It's possible that new instance will be returned after selection changed. This way you'll end up with two alive instances.
>

No. According these test: https://github.com/Jactry/wine/commit/4e0c5e8f2f169560ef8d8d7ae0d0620b8ddcd11e
GetSelection will not return a new instance after selection changed.

> Another thing to test if ITextDocument responds to IID_ITextSelection query.
>
>> I will try some other ways to fix this bug.
> First thing to do is to figure out what relations are between these interfaces.

You are right, I need having more tests.

--
Regards,
Jactry Zeng