Hello everybody,
Ok here's the scenario:
I have an old API that stores pointers in some place, let's call it
void Foo(void *);
In addition, it has its own getter, void GetFoo(void *)
Now, If i want to use an nsCOMPtr with one of my ISupports classes, how do i pass it in and retrieve it safely?
so...
nsCOMPtr<myInterface> myptr = ... // some initialization
// now save it in Foo Foo(myptr); // is this correct?
...
// later retrieve it GetFoo(myptr); // wrong?
Currently, this produces a crash in my code. How do i address this?
Thanks, Jonathan Le
_______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
