Apache OpenOffice (AOO) Bugzilla – Issue 22717
DllMain(PROCESS_DETACH) problems with sal's static C++ objects
Last modified: 2010-10-22 19:32:06 UTC
sal DllMain(PROCESS_DETACH) is called _before_ sal's static de-initializers are called. Potential workaround: a static C++ object in DllMain()'s PROCESS_ATTACH block and empty PROCESS_DETACH block, thus the object is added first to the de-initializer list. closing 21809 which is duplicate to this one which is targetted towards OOo 1.1.1.
*** Issue 21809 has been marked as a duplicate of this issue. ***
On process exit DllMain() is called *before* C and C++ Runtime (including static destructors) is shut down.
Fixed in cvs/porting/sal/osl/w32/dllentry.c on branch cws_fix645_sal7pp2
This problem didnt happend in OOo 1.1. but happend in all OOo 680 build. til m17 still same problem. I will attach the screenshot from OOo 680 m17 which I just installing it.
Created attachment 11990 [details] After finish button I got this error when installing OOo 680m17. Still exist/not yet solved
Please be patient. The fix is done on the branch I specified. It will be merged into master for 645 and 680 builds. Then the issues will be set to "Verified/Closed". The bug is a general problem that may also occur in 645 (OOo 1.1 build) and we already got crash reports reporting that problem for 645.
utomo > hro: Thanks. sorry I test this, ebcause I got info from my issue which is reported in OOo680, but ask me to verified that and close. I will wait, including next 680 version, I will try if possible.
hro@of: Please verify.
hro@utomo: Olaf Felka can only verify if the changes I made did not break OOo 1.1.1 because the error isn't reproducable on OOo 1.1.0 (but did occur under some special circumstances). So I'd like to ask you to close this task after the fix made it into 680. If Olaf set the task to "Verified" it does notmean that the changes are already merged into src680. Please use cvs log to determine when the change are merged into 680.
of: Tested on WinXP and 98.
Verified in cws sal7pp2.
I tried OOo 1.1.1a, and didnt occur (however, I _Didn't_ have this problem in _All_ my 1.1 version) But I _Always_ get this problem in _All_ OOo 2.0 version, so to make sure I need to test OOo 2.0 version. Thanks.
Ok in 680m20.
Created attachment 72202