[AGENT++] how to release the content int table?

Jochen Katz katz at agentpp.com
Tue Mar 26 20:56:40 CET 2013


Hi,

> Hi,Jochen I have try MibTable::clear() or content.clearAll(),and it
> works.But the memory still keepin the program.The memory will not go
> down!When add new row into the content,the memorywill increase even
> double.At the end ,the system will restart.(my data is
> large)

from your code, the reason for increasing memory usage could be, that
you add multiple rows with the same index my_index. Can you verify that
after your loop, content has m_size entries?

Regards,
  Jochen


More information about the AGENTPP mailing list