Closed Bug 953522 Opened 11 years ago Closed 11 years ago

XPCOM objects created/destroyed from static ctor/dtor

Categories

(Chat Core :: General, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: florian, Assigned: florian)

Details

Attachments

(1 file)

*** Original post on bio 71 at 2008-06-25 19:45:00 UTC *** Warnings on stderr with a debug build: WARNING: XPCOM objects created/destroyed from static ctor/dtor: 'gActivityTLS != BAD_TLS_INDEX && NS_PTR_TO_INT32(PR_GetThreadPrivate(gActivityTLS)) == 0', file /home/florian/build2/svn/instantbird/trunk/mozilla/xpcom/base/nsTraceRefcntImpl.cpp, line 1024 3 times at startup and at shutdown. The problems are at: mozilla/purple/purplexpcom/src/purpleTimer.cpp:49 (nsTArray_base) mozilla/purple/purplexpcom/src/purpleSockets.cpp:340 (nsTArray_base) mozilla/purple/purplexpcom/src/purpleDNS.cpp:53 (nsVoidArray)
Attached patch fixSplinter Review
*** Original post on bio 71 as attmnt 29 at 2008-06-26 21:42:00 UTC *** Use pointers for static arrays. The array instances now needs to be created and destroyed from purpleCoreService.
*** Original post on bio 71 at 2008-06-26 21:43:39 UTC *** Envoi purple/purplexpcom/src/purpleCoreService.cpp Envoi purple/purplexpcom/src/purpleDNS.cpp Envoi purple/purplexpcom/src/purpleDNS.h Envoi purple/purplexpcom/src/purpleSockets.cpp Envoi purple/purplexpcom/src/purpleSockets.h Envoi purple/purplexpcom/src/purpleTimer.cpp Envoi purple/purplexpcom/src/purpleTimer.h Transmission des donnees ....... Revision 218 propagee.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: