Christian Biesinger wrote:
jml wrote:

But there is no
"@mozilla.org/embedding/browser/nsWebBrowser;1"

Does compreg.dat in your Mozilla directory contain that @mozilla.org string?

Yes, I can find this line:
@mozilla.org/embedding/browser/nsWebBrowser;1,{f1eac761-87e9-11d3-af80-00a024ffc08c}
in the CONTRACTID section.

But it still not listed from my methods. Maybe have something to do with the exception? I will try again later.

NS_GetMemoryManager.free(ptr)? I tried this, but seemed it do not return NS_OK.

Yeah this is basically the right approach, at least in C++ (don't know about Java, doesn't it do automatic garbage collection?).

This method does not return any value (it's void)... so clearly, it can't return NS_OK :)

Previously I thought every XPCOM method will return an nsresult, so I assume the free() should also return a nsresult.

Relooking at the nsIMemory.idl, I noticed there is a "notxpcom" flag. Is that flag make it to not return nsresult?

3. How can I get the nsIStringService service object?

Do a CreateInstance for the contract id "@mozilla.org/stringService;1"
(I don't know the syntax for this in Java)

I am not using webclient, but trying to write my own java wrapper code. So all syntax will be defined by myself :-)

I will try to do createInstance.

(Note that this interface is not frozen, so it may change anytime)


Yeah, I also received a response from Doug saying it "is not complete or active" yet :-(

Thanks
jml


Reply via email to