company logo

Updating a newly created instance

After creating an instance, the instance has a state "new instance" until it is read again from the database (Get, Reset). This may cause several functions not working properly (see example below).

// does not work - no data is copied to newly creeated instancesr

  target_ph.Add(key_value);

  target_ph.CopyData(*source_ph,REPL_direct);

// this works, since Reset disables the 'new instance' state

  target_ph.Add(key_value);

  target_ph.Reset();

  target_ph.CopyData(*source_ph,REPL_direct);