Re: Vector Question for Newbie

From: Karl von Laudermann (karl_at_ueidaq.com)
Date: 12/31/03

  • Next message: Todd Corley: "Re: Vector Question for Newbie"
    Date: 31 Dec 2003 06:07:05 -0800
    
    

    paulpigott@earthlink.net (Paul P) wrote in message news:<d629891c.0312300811.670b805@posting.google.com>...
    > Greetings,
    >
    > 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[0] has the entry just added.
    >
    > After adding the second one, Vector[0] and Vector[1] both have the
    > entry just added (the second entry).
    >
    > After adding the third one, Vector[0], Vector[1] and Vector[2] 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.


  • Next message: Todd Corley: "Re: Vector Question for Newbie"