Body Definition Undefined

In reply to cgales:

Thnx for the reply Mr.Gales.
Yes I have defined the task body(); with some events coming from the config class.
and set_drain_time is also set for 1000, even then it is not being exited after 1000ns.

I also tried to comment out the events just as an empty body, even though it gave the same warning and my simulation hangs thereafter.

Best Regards,
Manoj