Flush function of uvm_in_order_class_comparator not working

In reply to dave_59:

From the parent component?

I created a uvm_in_order_class_comparator in the build_phase of my scoreboard.
Then in the write function I’m calling the do_flush()


virtual function void build_phase(uvm_phase phase);
  comp_cmd = uvm_in_order_class_comparator#(packet)::type_id::create("comp_cmd", this);
endfunction

virtual function void write_exp_imp(packet tr);
  if(tr.reset) begin
    comp_cmd.do_flush();
  end
endfunction

What do you mean by calling it from the parent component?