On Mon, Aug 30, 2004 at 11:13:48PM +0200, Thomas Pfeiffer wrote:
> >>   *newcount = i;
[...]
> That's a NULL pointer because 'i' will get out of scope at the end of 'for'
> if I understand correctly *blushing*.

No, it's a null pointer because you had:
  PRInt32* newcount = 0;

And that means newcount will be a NULL pointer. NULL is just a fancy
name for 0 in C++.

Things that go out of scope can not be accessed anymore. Your compiler
will not allow you :)

> Thanks Christian. You've been a great help and source of knowledge. Your
> response is extremely appreciated and the component works fine now.

No problem.

-- 
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to