Closed Bug 53646 Opened 24 years ago Closed 15 years ago

Ease the life of the embedder with nsCOMPtr_base linking errors

Categories

(Core :: XPCOM, enhancement, P3)

enhancement

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: bruce, Unassigned)

References

Details

(Keywords: embed)

Add something like:

#if defined(NS_DEBUG) && !defined(DEBUG)  (or should that be _DEBUG?)
#warn You will probably experience linking problems involving nsCOMPtr_base.
#warn Please define NS_DEBUG in your application.
#endif

to nsCOMPtr.h after:

 80 #ifdef NS_DEBUG
 81   #define NSCAP_FEATURE_TEST_DONTQUERY_CASES
 82   #define NSCAP_FEATURE_DEBUG_PTR_TYPES
 83 //#define NSCAP_FEATURE_TEST_NONNULL_QUERY_SUCCEEDS
 84 #endif

This should ease things for people embedding since this isn't necessarily 
something that is readily obvious and has caused problems for people for some 
time. (And then they show up on IRC....)
Keywords: embed
Status: NEW → ASSIGNED
collecting under tracking bug # 178174
Severity: normal → enhancement
This bug suggests one way to solve this problem, bug #179278 suggests another.
Depends on: 179278
Assignee: scc → nobody
Status: ASSIGNED → NEW
QA Contact: rayw → xpcom
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.