Hi everyone,
I currently have an object that has a sequence of
pointers to another object. Using methods I created I
can insert the pointers into the sequence which is
basically easy. When I call the function of the object
that returns the sequence (so that I can iterate
through it and display it) all goes well. The problem
is that whenever I call it a second time nothing
happens?
Is it correct to assume that once you use the sequence
it immediately goes out of scope? If so then does that
mean that the values which I filled the sequence with
no longer exist? If this is the case then how can I
keep those values and stop the ORB from erasing the
data within the sequence? I think I read somewhere
that you can initialise a sequence with something like
Seq(len,max,buffer,...) but I can't fully remember.
Can this help prevent the ORB from erasing the data so
that it's solely under my control? Has anyone got any
good examples of this?
Your help is very needed and will be much appreciated.
Thanks
John
I currently have an object that has a sequence of
pointers to another object. Using methods I created I
can insert the pointers into the sequence which is
basically easy. When I call the function of the object
that returns the sequence (so that I can iterate
through it and display it) all goes well. The problem
is that whenever I call it a second time nothing
happens?
Is it correct to assume that once you use the sequence
it immediately goes out of scope? If so then does that
mean that the values which I filled the sequence with
no longer exist? If this is the case then how can I
keep those values and stop the ORB from erasing the
data within the sequence? I think I read somewhere
that you can initialise a sequence with something like
Seq(len,max,buffer,...) but I can't fully remember.
Can this help prevent the ORB from erasing the data so
that it's solely under my control? Has anyone got any
good examples of this?
Your help is very needed and will be much appreciated.
Thanks
John