[AGENT++] static instance pointer and different context
Claus Klein
claus.klein at arcormail.de
Wed Sep 1 23:14:46 CEST 2010
I have to add the same MIB several times at different contexts.
The with AgenPro3 generated code has a static pointer to each scalar
and table entry.
This is used for example at some check at the notify functions.
But when I register the same MIB more than ones at different context,
this may be wrong!
Should it not better to have a map instead the single instance var?
What is the reason to have this pseudo singleton objects?
With regards,
Claus
More information about the AGENTPP
mailing list