[AGENT++] something about mib class?

Jochen Katz katz at agentpp.com
Fri Apr 1 23:28:11 CEST 2005


Hi,

>   some code as followed:
>   Mib* mibtrap = new Mib();   mibtrap->add(new snmp_target_mib());
>      delete mibtrap;

> i use vc6 compiled the program,i use the window 2k' resource task
> manager,i found every time i call the code as above, the handle number
> will increase,if i note the above code , the handle number will no add...

maybe the illegal unlock in ThreadManager::~ThreadManager()
(threads.cpp) leads to unreleased handles. Remove the unlock() and try
again.

Regards,
  Jochen




More information about the AGENTPP mailing list