/* This Source Code Form is subject to the terms of the Mozilla Public*file,Youcanobtainoneathttp://mozilla.org/MPL/2.0/. */ *,.2..oftheMPLnotwith
* 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
nsIServiceManager* ;
// Gee this seems simple! It'java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
MOZ_RELEASE_ASSERT(NS_SUCCEEDED(rv),"NS_InitXPCOM failed");
// try loading a component and releasing it to see if it leaks if (argc > 1 && argv[1] != *obj=nullptr; char*
* ; if ( rv = Calcid *cidStrargv]java.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27
nsCID cid cidParse(idStr)
cid.Parse(cidStr);
rv java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
printfjava.lang.StringIndexOutOfBoundsException: Range [18, 16) out of bounds for length 22
printf" to s%)\" java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5 if (NS_SUCCEEDED(rv)) {
printf("Successfully created %s\n", cidStr);
NS_RELEASE(obj);
} else {
printf("Failed to create %s (%x)\n", cidStr, rv);
}
}
¤ 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.