https://bugs.documentfoundation.org/show_bug.cgi?id=97432
--- Comment #10 from [email protected] ---
further logging suggested that
this line creates pThisCopy(INSTANCE-1,just for later explanation) as another
instance than *this(INSTANCE-2)
https://opengrok.libreoffice.org/xref/core/basic/source/classes/sbxmod.cxx?r=91937535#2100
Then pThisCopy is given to SbxHint constructor
https://opengrok.libreoffice.org/xref/core/basic/source/classes/sbxmod.cxx?r=91937535#2112
Later, at some point I cannot tell when,
SbMethod::SetDebugFlags is called ,with static_cast<int>(n) being 1.
https://opengrok.libreoffice.org/xref/core/include/basic/sbmeth.hxx?r=c02c4df9#60
probably *this in SetDebugFlags is referencing INSTANCE-1, not INSTANCE-2.
mpBroadcaster = std::move(pSaveBroadcaster);
mpBroadcaster->Broadcast( SbxHint( nHintId, pThisCopy ) );
SAL_INFO("basic",static_cast<int>(GetDebugFlags())); // INSTANCE-2
SAL_INFO("basic",static_cast<int>(pThisCopy->GetDebugFlags())); // INSTANCE-1
gave me
0
1
https://opengrok.libreoffice.org/xref/core/basic/source/classes/sbxmod.cxx?r=91937535#1160
this pMeth after the SbMethod::Broadcast call is , as the same as the one
before the call, INSTANCE-2.
INSTANCE-2 is used to initialize SbRuntime here as I mentioned in the previous
post.
https://opengrok.libreoffice.org/xref/core/basic/source/classes/sbxmod.cxx?r=91937535#1168
I think this is somewhat related to this bug.
Any thoughts?
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs