[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] object copying in c++/otcl



> ive noticed that the otcl object name of my queue instantiation changes
> from initialization time (e.g. when im adding stuff to the vector, the
> vector-containing queue object name is _o81, but later when im trying to
> look stuff up in the vector, the queue object name is _o91).

Sounds like you are accessing two objects. Perhaps you assigned that _o*
to a otcl variable and later the value of that variable got changed?

> it appears that some sort of copy construction is
> happening... perhaps. and in the process the vectors arent getting copied
> correctly.
> 
> my queue also contains another ns otcl/c++ object (droptail queue) and
> this object also appears to get copied, though correctly, in this case.
> 
> does anyone have any idea whats going on, or what im doing wrong?
> 
> any help would be greatly appreciated!
> 
> thanks!
> nikhil
> 
> 
> -----
> If you feel that you have both feet planted on level ground, then the
> university has failed you.
> 
> Robert Goheen, President, Princeton University
> 
>