calling SNMPProcessPendingEvents() in another thread.
chan
ldchan____iloveschool.co.kr
Tue Nov 6 06:00:54 CET 2001
Hi.
I created an thread for calling SNMPProcessPendingEvents() function periodically.
DWORD WINAPI ProcessPendingEventsThread(LPVOID pvParam)
{
HANDLE* phExit = (HANDLE*)pvParam;
while (true) {
DWORD dwRet = WaitForSingleObject(*phExit, 100);
switch (dwRet) {
case WAIT_OBJECT_0:
return 0;
case WAIT_TIMEOUT:
SNMPProcessPendingEvents();
break;
default:
break;
}
}
return 0;
};
after the calling snmp.get() in main thread, SNMPProcessPendingEvents() calling above raises an error and the program was terminated abnormally.
what is the problem?
give me an advice.
thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.agentpp.org/pipermail/agentpp/attachments/20011106/9b7d9487/attachment.htm
More information about the AGENTPP
mailing list