Hi all,
I have written an embedding app for windows, which works fine. For
some reason i now want to restart the embedding engine
(NS_TermEmbedding, again NS_InitEmbedding). I use
nsCOMPtr<nsILocalFile> tempFile = nsnull;
nsAutoString appRoot = NS_ConvertASCIItoUCS2(m_strAppRoot.c_str());
rv = NS_NewLocalFile(appRoot, PR_TRUE, getter_AddRefs(tempFile));
NS_ASSERTION(tempFile, "Couldn't create nsIFileSpec to get file
size!");
if (NS_FAILED(rv) || !tempFile)
{
}
When i start the app the first time, this works well. After finishing
with NS_TermEbedding i call this again and NS_NewLocalFile fails. I
don't really know how. NS_InitEmbedding will crash if called with a
nsnull parameter.
If you know what to do, please answer,
with best regards
T. Coerrens