[AGENT++] mib->find_group_of fails

Ajit ajit at onmobile.com
Wed Sep 28 19:53:46 CEST 2005


Hi,
 I create an MibGroup object and add it to a Mib object,calling
Mib::find_group_of("",OID) returns 0
Why??

the order of operations is something like this:

Mib* mib=new Mib();
MibGroup* g=new Group(OID);
 g->add(new MibLeaf(SUBOID,READONLY,OctetStr("value"));
mib->add(g);
g=mib->find_group_of("",OID);//g==0

Regards,
Ajit




More information about the AGENTPP mailing list