Re: Vector Question for Newbie
From: Karl von Laudermann (karl_at_ueidaq.com)
Date: 31 Dec 2003 06:07:05 -0800
email@example.com (Paul P) wrote in message news:<firstname.lastname@example.org>...
> I am running into a very unusual problem when adding elements to a
> vector. I'm using a Vector to accumulate messages for particular
> datasets. There is one point where I have to add three messages to
> the Vector at one time.
> After adding the first one, Vector has the entry just added.
> After adding the second one, Vector and Vector both have the
> entry just added (the second entry).
> After adding the third one, Vector, Vector and Vector all
> have the entry just added (the third entry).
> I don't know why this is happening.
What exactly is the CommMessages class? If its some kind of strange
pseudo-singleton class, such that its constructor always returns the
same object modified with the new parameters, this would explain the
behavior you're seeing.