[AGENT++] Order of creation and deletion

michael.carr at bt.com michael.carr at bt.com
Mon Dec 1 19:19:01 CET 2008


Hi all,

Looking at the example subagents they are creating a SubAgentXMib, then
an AgentXSlave followed by an AgentXRequestList.  When the main loop is
exited (the application is killed/terminated) the order of deletion
shown in the examlpes varies slightly but in the main runs as follows:
deleting the thread pool for the SubAgentXMib, then deleting the
AgentXRequestList, followed by deleting the SubAgentXMib and finally
deleting the AgentXSlave.

This seems a little odd because it's not the reverse of the creation
process i.e. deleting the thread pool for the SubAgentXMib, then
deleting the AgentXRequestList, followed by deleting the AgentXSlave and
finally deleting the SubAgentXMib.

I read somewhere in either a header file or documentation that the order
of deletion in the examples is correct but can no longer find where I
read that!

So, which is the correct order of deletion?

Thanks,
Mike




More information about the AGENTPP mailing list