On Mon, 27 Sep 2004, Robert Story wrote:
Oh, so you want to get picky, eh?
All right then, once a request gets into your handler, you could also add your data context/free routine to the agent request data list. The free routine won't be called until after request processing is finished, and thus it should be safe to free the data context even if the reference count is non-zero. Just make sure the data list id is unique.
Well.. What I wound up doing was implementing delayed garbage collection for the data contexts. The handler just tosses the pointer into a queue to be deleted later (after agent_check_and_process() returns) while I track pointers that have already been freed.
But I consider it a bit of a kludge and would like to be able to tell my client whether it's jus the way it's gotta be or if it's temporary due to a bug.
-- Michael Kirkham www.muonics.com
------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
