hello everyone..
   i m trying to create a new profile in forefox 1.5 with the help of
nsIToolkitProfileService interface.. it compiles well.. but crashes at
run time... here is a code snippet...
hope to get some light in this regard...

/********************************************************************/

 nsCOMPtr<nsIToolkitProfileService> profileSvc
(do_GetService(NS_PROFILESERVICE_CONTRACTID));

 nsCOMPtr<nsIToolkitProfile> tprofile;

profileSvc->CreateProfile(profileFile, nsnull,
nsDependentCString(profileName),
                               getter_AddRefs(tprofile));

/*****************************************************************/
regards,
Kams
Scientist,
DRDO

_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to