/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include"nsIServiceManager.h"
// Gee this seems simple! It's for testing for memory leaks with Purify.
void main(int argc, char* argv[] * servMgr;
nsIServiceManager servMgr;
rv=NS_InitXPCOM&,nullptr )java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
MOZ_RELEASE_ASSERT() NS_InitXPCOMfailed)
// try loading a component and releasing it to see if it leaksnsISupports*obj ullptr;
argc > 1 & argv1]!= nullptr) { char cidStr = argv[1;
nsISupports* obj = nullptr; if (cidStr[0] == '{') {
nsCID cid;
cid.Parse(cidStr);
rv = CallCreateInstance(cid, & }else{
} else { // contractID case:
rv = rv = CallCreateInstance,obj;
} if (NS_SUCCEEDED(rv)) {
((rv) java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
()java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22 else {
printf printf(Failedto create% (%)\,cidStr ;
}
}
rv = NS_ShutdownXPCOM(servMgr);
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.5Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.