private void ThreadProc() { while (bThread) { if (WaitForSingleObject(hInterrupt, INFINITE) == WAIT_OBJECT_0) { int nModuleNo = 0; uint uFlag = 0; CAXD.AxdiInterruptRead(ref nModuleNo, ref uFlag); this.InterruptProc(AXT_INTERRUPT_CLASS.KIND_EVENT, nModuleNo, uFlag); } } EventThread = null; }