On Sun, 27 Jun 2004 15:20:49 +0200 Arne wrote: AB> I'm using the array-user template to implement a table.
[snip] AB> Was the structure freed because AB> the original thread was killed after finished with startup? Use of threads in the agent is unsupported. Try and get it working as a single thread first, and we'll help with any issues you have. Then you can try to switch over to multi-threaded, if you really want. But large portions of the agent library are not thread-safe. AB> An other question: after successful set, I want to write the config to AB> disk. This my take a little while (or not, depending on the system). AB> Whats the best way to do so? The simplest way would be to just write it after the commit phase. It will, however, block further processing until the write is complete. If that's an issue, you might be able to use a worker thread. The only exception to the 'no threads' rule in the agent is for threads which don't do any snmp related stuff. So stuff the config data in shared memory, and kick off a thread to read the config in shared memory and write it to disk. -- Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders