Closed Bug 277852 Opened 20 years ago Closed 20 years ago

###!!! ASSERTION: You are calling CreateInstance "{b148eed2-236d-11d3-b35c-00a0cc3c1cde}" when a service for this CID already exists!: 'Error', file r:/cenzic/mozilla/xpcom/components/nsComponentManager.cpp, line 1881

Categories

(SeaMonkey :: Download & File Handling, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: timeless, Assigned: csthomas)

References

()

Details

Attachments

(1 file)

This happens to be the NS_SOUND_CID.

Almost everyone calls createInstance. From my quick scan everyone except for
download manager uses createInstance.

Note that bookmarks improperly uses the Class ID instead of the Contract, that's
the next bug.

The fix is simple. Change do_GetService to do_CreateInstance.
Assignee: download-manager → cst
Attached patch patchSplinter Review
I wonder why I used getservice when I wrote the code initially (see cvs blame).
Attachment #170999 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #170999 - Flags: review?(timeless)
Status: NEW → ASSIGNED
Whiteboard: [cst:active, r?]
Attachment #170999 - Flags: review?(timeless) → review+
Comment on attachment 170999 [details] [diff] [review]
patch

So why is sound not a service?	The GTK implementation assumes it is :-/
Attachment #170999 - Flags: superreview?(neil.parkwaycc.co.uk) → superreview+
/cvsroot/mozilla/xpfe/components/download-manager/src/nsDownloadManager.cpp,v 
<--  nsDownloadManager.cpp
new revision: 1.104; previous revision: 1.103
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Whiteboard: [cst:active, r?]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: