Deleting table rows
Frank Fock
Frank.Fock____t-online.de
Sun Jul 15 20:55:28 CEST 2001
Alex,
Please try one of the examples without modification. The won't crash.
Somewhere there must be a memory fault in your object groups.
Or may be, that the _SNMPv3 flag is inconsistently set between
SNMP++ and AGENT++.
Removing all rows in the update method should be OK.
Regards,
Frank
Alex Finogenov wrote:
> Frank,
>
> Thanks again for your reply.
>
> My greatest problem now is that the agent dies with a Segmentation fault
> even when I add and delete rows using AdventNet's Mib browser to a compiled
> agent with *no* additions to the generated code. Simply after a few random
> operations, but primarily on GetNexts. The agent.cpp is taken from your
> examples (like DynamicTable, etc.), I just added my object groups to the
> mib. Unfortunately I don't have Purify or any other memory analyzer
> available to me at the moment.
>
> I ported agent++/snmp++ to x86 Solaris (SunOs 5.8 Generic_108529-07 i86pc,
> latest patches as of May 2001) compiling with g++/gcc 2.8.1. Agent++/snmp++
> were compiled to exclude multithreading and SNMPv3, i.e. I have simplest
> possible agent configuration for SNMPv2.
>
> Regarding cleaning up when preloading table before each request using
> overloaded MibTable::update(), I intend to delete all of the rows in a table
> entry right in the update() immediately before processing a new request and
> populating a table entry for it. This will clean up all the rows left since
> the previous request. I intend to do this by calling either
> MibTable::clean(), or cleanAll() on all of the 3 collections of rows
> (deleted, not active, and content) in the MibTable.
>
> I will appreciate any help regarding these issues.
>
> Sincerely,
> Alex
>
More information about the AGENTPP
mailing list