Problem with serializing a MIB
Wenfried Schwenkner
wernfried.schwenkner____sesa.de
Thu Feb 8 20:02:12 CET 2001
We are just beginning to explore the new serializing feature
of agent++ v3. The following short sample raises an error
when doing save_all (also tried with save_to_file).
RequestList reqList;
Mib mib("c:\\mibtest\\");
mib.add(new sysGroup("test", "1.3.6.1.4.1.2654", 10));
mib.add(new snmpGroup());
MibGroup grp("1");
grp.add(new MibLeaf("1", READONLY, 1));
mib.add(&grp);
// register requestList for outgoing requests
mib.set_request_list(&reqList);
mib.save_all();
The error is in the line from Oid::nCompare:
{
-> if ( this->smival.value.oid.ptr[z] < o.smival.value.oid.ptr[z])
return -1; // less than
if ( this->smival.value.oid.ptr[z] > o.smival.value.oid.ptr[z])
return 1; // greater than
z++;
}
While debugging, we can see, that "o.smival.value.oid.ptr" doesn't seam
to point to the correct array.
Am I doing something dumb here?
--
W. Schwenkner
S.E.S.A. AG Tel: (0049) +30 - 390722 303
Software und Systeme Fax: (0049) +30 - 390722 222
Alt-Moabit 91a mailto:Wernfried.Schwenkner at bln.sesa.de
10559 Berlin http://www.sesa.de
Germany
More information about the AGENTPP
mailing list