Is storing pointers to table rows safe?

"Philip Mason" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <77638F7A1E0E0A48B3E118AF250D1FC801119060@crystalvision02.Crystal.local>
Hello all,

I'm using the table_dataset helper to create an agent with some tables
and I store the pointers to the table rows after I create them so I can
update the values later using "netsnmp_set_row_column". I'm seeing a
problem where sometimes in table_dataset_clone_row memdup creates a new
table_data_set_storage with the same address as my stored row
(overwriting it). 

Is this because what I am doing (storing the row) is unsafe? Can the
agent decide to move the row to a different memory location for some
reason and therefore frees the memory meaning that it can be
reallocated?

Thanks in advance

Phil Mason



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.