Hello,

I have thread function in Class A:
m_FilterThread = AfxBeginThread(StartFilterThread,(LPVOID)this);

I want to terminate this thraed from view class, How can I do it,
If used AfxEndThread(m_FilterThread ->m_hThreadId), //It is crashing.

can anyone please help me?

Thanks
Madhavi