Re: The future of XPCOM memory management

2007-08-28 Thread L. David Baron
thon to use MMgc as well? (That said, the python stuff hasn't caught up with the cycle collector, and would probably leak a lot if it were used as intensively as we use JS, so I'm not sure how seriously we should take it.) -David -- L. David Baron http:

Re: SDK to build component in VS2005

2006-06-01 Thread David
I'm not sure this is wat you are looking for, but for component creation exists the Mozilla SDK: http://developer.mozilla.org/en/docs/Gecko_SDK David. ___ dev-tech-xpcom mailing list dev-tech-xpcom@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-xpcom

Re: How do I make a c++ component work in Firefox 1.5 ??

2006-06-01 Thread David
ay wich version it is) but only on Windows, on Linux I've try only with SDK 1.7. A very odd thing is that on Linux, after intalling the component, firefox doesn't start, just gives you a waiting cursor for a while an closes (without showing any windows), y

How do I make a c++ component work in Firefox 1.5 ??

2006-05-31 Thread David
'] has no properties" {file: "file:///C:/Documents%20and%20Settings/David/Datos%20de%20programa/Mozilla/Firefox/Profiles/i6ujqcml.default/extensions/%7Bb2c3d20d-243e-4c1b-95aa-88dbd4159e8a%7D/components/nsPrintCapture.js" line: 33}]' when calling method: [nsIFactory::createI

Re: How do I compile a component for Windows??

2006-05-19 Thread David
Benjamin, thanks a million!! that was the problem. I had to add those two libraries to the "Additional dependencies" entry in the project configuration. It's working now. thanks again. David. ___ dev-tech-xpcom mailing list

Re: How do I compile a component for Windows??

2006-05-19 Thread David
well... I've no idea. I just downloaded the sdk, the compiler, and try to build it. How do I know that?? ___ dev-tech-xpcom mailing list dev-tech-xpcom@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-xpcom

Re: How do I compile a component for Windows??

2006-05-19 Thread David
I try with the MinGW, it gives me a lot of similar errors: nsprint.o:nsprint.cpp:(.text+0x137f): undefined reference to `_imp___Z20NS_NewGenericModule2P12nsModuleInfoPP9nsIModule' ___ dev-tech-xpcom mailing list dev-tech-xpcom@lists.mozilla.org https://

Re: How do I compile a component for Windows??

2006-05-18 Thread David
I follow the instructions on the link you gave me, and also in all the tutorials I have found, but I can't compile it. VC 2005 gives me these errors (no matter what I do, even with the examples I downloaded): Creating library C:\Documents and Settings\David\Mis documentos\Visual Studio

How do I compile a component for Windows??

2006-05-17 Thread David
re is some free compiler I can use. Thanks. David. ___ dev-tech-xpcom mailing list dev-tech-xpcom@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-xpcom

Re: Linker errors building component with dynamic glue on Mac

2006-05-02 Thread L. David Baron
On Tuesday 2006-05-02 02:21 -0700, L. David Baron wrote: > If I add "-Wl,-executable_path -Wl,../../../dist/bin" to the link > command, those errors go away, but I get a different set of errors, > starting with: So it all works if I add it to the right place in the middle of th

Re: Linker errors building component with dynamic glue on Mac

2006-05-02 Thread L. David Baron
On Monday 2006-05-01 22:34 -0700, L. David Baron wrote: > I'm having trouble building a XPCOM component using the "dynamic glue" > strategy described in > http://developer.mozilla.org/en/docs/XPCOM_Glue#Using_Frozen_linkage_.28dependent_on_xpcom.dll.29 > on the Mac. It

Linker errors building component with dynamic glue on Mac

2006-05-01 Thread L. David Baron
ined in @executable_path/libxpcom_core.dylib _NS_UTF16ToCString_P referenced from libxpcom expected to be defined in @executable_path/libxpcom_core.dylib _NS_UnregisterXPCOMExitRoutine_P referenced from libxpcom expected to be defined in @executable_path/libxpcom_core.dylib make: *** [libleak

Re: An array passed by a single parameter

2006-02-10 Thread David Huynh
Christian Biesinger wrote: David Huynh wrote: Is there another hack for passing/returning an array of nsISupports instead of bytes? If this is JS->JS communication via XPCOM, you could use wrappedJSObject: http://www.mozilla.org/scriptable/js-components-status.html#unwrapping Thanks

Re: An array passed by a single parameter

2006-02-08 Thread David Huynh
d of bytes? Thanks. David ___ dev-tech-xpcom mailing list dev-tech-xpcom@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-xpcom

Re: An array passed by a single parameter

2006-02-08 Thread David Huynh
I actually have the very same problem, and also the problem of passing in an array as a single parameter, and the problem of exposing a member field as an array. David Murilo Camões Perrone wrote: In my XPCOM component, I must use an single-parameter "byte array" , because I must