XPCOM objects created/destroyed from static ctor/dtor

RESOLVED FIXED in 0.1.2

Status

--
minor
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: florian, Assigned: florian)

Tracking

trunk
0.1.2

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
*** 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)
(Assignee)

Comment 1

5 years ago
Created attachment 8351773 [details] [diff] [review]
fix

*** 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.
(Assignee)

Comment 2

5 years ago
*** 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
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.