[AGENT++] Why MibTable pointer comes in as NULL?

Zhang, Wei wei.zhang at cubic.com
Thu Dec 23 23:52:07 CET 2004


Frank,
I use agent++win32. if somebody do get_next or get_Bulk for mib ther are not
register in master agent. The cpu will be 100% usage and you cannot do
getNext again. How can I fix this problem? 


Best Reagrds,


Zhang Wei

-----Original Message-----
From: Frank Fock [mailto:fock at agentpp.com]
Sent: Thursday, December 23, 2004 5:46 PM
To: agentpp at agentpp.org
Subject: Re: [AGENT++] Why MibTable pointer comes in as NULL?


Fedja,

The src pointe ris NULL because the row deletion event's source is the
myEntry table itself. If the source would be another table (e.g. a base
table) then the pointer will be not NULL. The pointer can then be used
to access data from the base table or to call a method on the base table.

Best regards,
Frank


Fedja Jeleskovic wrote:

>I was trying to add some code inside the row_delete member function, and I
>was surprise that MibTable *src pointer comes in as NULL!
>myEntry::row_delete(MibTableRow* row, const Oidx& index, MibTable* src)
>{
>...
>}
>The strange thing about all is that myEntry is a MibTable by itself, so I
>was wondering what is going on here. What is this pointer for?
>
>Thanks
>
>
>Fedja
>
>_______________________________________________
>AGENTPP mailing list
>AGENTPP at agentpp.org
>http://agentpp.org/mailman/listinfo/agentpp
>
>  
>


_______________________________________________
AGENTPP mailing list
AGENTPP at agentpp.org
http://agentpp.org/mailman/listinfo/agentpp



More information about the AGENTPP mailing list