problems with static WeakReference when comphelper is in libmerged
matus.kukan at gmail.com
Mon Nov 23 13:02:48 PST 2015
On 23 November 2015 at 21:33, Caolán McNamara <caolanm at redhat.com> wrote:
> On Mon, 2015-11-23 at 20:52 +0100, Matúš Kukan wrote:
>> Hi there,
>> I was looking again at adding comphelper to libmerged and found that
>> only problem visible in tests is caused by static
>> WeakReference<XFrame2> m_xCloserFrame from
>> I am getting crashes at exit like below:
> As a bodge, does it make a difference to turn it from a global to a
> local static inside Frame::impl_checkMenuCloser ?
:) Hmm, yes, it helps.
So probably best to make it local - almost all other static
WeakReferences are local to a function too - and be done with it.
More information about the LibreOffice