← Back to team overview

kaliveda-dev team mailing list archive

Re: [Question #250731]: Copying a KVRList between different TProcessIDs.

 

Question #250731 on KaliVeda changed:
https://answers.launchpad.net/kaliveda/+question/250731

    Status: Open => Answered

John Frankland proposed the following answer:
Does the KVIDHarpeeSiCsI_e503::_records list really need to be a KVRList?
I would suggest you make it a simple TList (or KVList, or KVHashList, etc. depending on
exactly what you put in and how you want to manipulate it), then instead of

	records_ = new KVRList(TProcessID::GetProcessWithUID(records));
	records->Copy(*records_);

just do

	records_ = new TList;
	records_->AddAll(records);

which will fill the TList with the addresses of all the objects referenced by the KVRList
(which I assume will live as long as the database file is open)

Would that work?

-- 
You received this question notification because you are a member of
KaliVeda Development Team, which is an answer contact for KaliVeda.