Added pure virtual for setActiveContext

Force inherited classes to implement this member.