Event usage in a class member function

In reply to bharath123:

Did you intend to write

task my_new();
forever @(ev1)…

Regards
Srini
www.go2uvm.org