[AGENT++] Problem when run agentx++win32master process
Dave White
dave.white at efi.com
Fri Jul 23 03:34:17 CEST 2004
Daniel,
I would guess that one (or more) of the SnmpExtension DLL agents that
agentx++win32master loaded did not return a valid handle when a call was made
to its SnmpExtensionInit function (through the variable initFunction). I
think that the code in ExtensionDLL::init needs to initialize the value of
the local variable eventHandle to zero in case the called routine does not
set the value eventHandle to anything. I also suggest checking the value
after the call to the SnmpExtensionInit function to insure that the value is
not INVALID_HANDLE_VALUE. If it is, then it should zero the local
eventHandle variable. The code in TrapPoller::run is already set up to not
add any event handles that are zero.
For example, try the following:
HANDLE eventHandle = 0;
AsnObjectIdentifier asnOid;
BOOL status = initFunction(0, &eventHandle, &asnOid);
if (eventHandle == INVALID_HANDLE_VALUE)
eventHandle = 0;
I hope this helps.
Regards,
Dave
-----Original Message-----
From: qinyd at tom.com [mailto:qinyd at tom.com]
Sent: Thursday, July 22, 2004 5:48 PM
To: agentpp at agentpp.org
Subject: [AGENT++] Problem when run agentx++win32master process
Hi Frank and all list members:
I'm using the agentx++win32master.
Once it run, the error msg below display on the stdout continuously.
20040722.16:33:11: 1884: (2)ERROR : Wait for traps failed (reason): (6)
I consider the problem occured in the function TrapPoller::run().
when execute the sentence below, the return value is very large.
DWORD status = WaitForMultipleObjects(n+1, eventHandles, FALSE, 10000);
It seems that there is any problem with the TrapPoller.
Any suggestions would be greatly appreciated.
Daniel
More information about the AGENTPP
mailing list