Thanks for your response.
Using the example in embedding/browser/gtk/src/EmbedPrivate.cpp you
mentioned, I still have basically the same problem:
======
#include <stdio.h>
#include "xpcom-config.h"
#define XPCOM_GLUE 1
#include "nsEmbedAPI.h"
#include "nsCOMPtr.h"
#include "nsStringAPI.h"
#include "nsComponentManagerUtils.h"
#include "nsXPCOM.h"
int main()
{
nsCOMPtr<nsILocalFile> path ;
nsresult path_result =
NS_NewNativeLocalFile(nsDependentCString("."),
1,
getter_AddRefs(path)) ;
fprintf(stderr, "path_result: %x\n", path_result) ;
fprintf(stderr, "path: %x\n", path.get()) ;
nsresult init_result = NS_InitEmbedding(path, nsnull) ;
fprintf(stderr, "init_result: %x\n", init_result) ;
nsresult term_result = NS_TermEmbedding() ;
fprintf(stderr, "term_result: %x\n", term_result) ;
return 0 ;
}
======
% ./mytest
path_result: c1f30001
path: 0
init_result: c1f30001
term_result: c1f30001
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding