https://bugs.documentfoundation.org/show_bug.cgi?id=145175
Julien Nabet <serval2...@yahoo.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |noelgran...@gmail.com, | |sberg...@redhat.com --- Comment #4 from Julien Nabet <serval2...@yahoo.fr> --- Stephan/Noel: In framework/source/services/frame.cxx I tried to change m_aCommandOptions from SvtCommandOptions to std::unique_ptr<SvtCommandOptions> but it failed with: #0 std::__shared_ptr<SvtCommandOptions_Impl, (__gnu_cxx::_Lock_policy)2>::get() const (this=0x20) at /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:1330 #1 0x00007fbbb1490848 in std::__shared_ptr_access<SvtCommandOptions_Impl, (__gnu_cxx::_Lock_policy)2, false, false>::_M_get() const (this=0x20) at /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:1027 #2 0x00007fbbb1485c35 in std::__shared_ptr_access<SvtCommandOptions_Impl, (__gnu_cxx::_Lock_policy)2, false, false>::operator->() const (this=0x20) at /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr_base.h:1021 #3 0x00007fbbb1484616 in SvtCommandOptions::EstablishFrameCallback(com::sun::star::uno::Reference<com::sun::star::frame::XFrame> const&) (this=0x0, xFrame= uno::Reference to ((anonymous namespace)::XFrameImpl *) 0x2cbd490) at unotools/source/config/cmdoptions.cxx:340 #4 0x00007fbbb61dc9b2 in (anonymous namespace)::XFrameImpl::initListeners() (this=0x2cbd420) at framework/source/services/frame.cxx:509 I noticed the use of weak reference and std::make_shared in unotools/source/config/cmdoptions.cxx. Any idea how to fix this part? -- You are receiving this mail because: You are the assignee for the bug.