On Thu, 14 Apr 2005 15:36:32 +0800 Hongjunli wrote: H> snmp_set_var_value(idx, (u_char *)entry->AdminPwd, H> strlen(entry->AdminPwd)); //when execution arrives at this line ,the H> agent will be shut down H> H> the agent will be shut down .Error message is "segment default"
That's likely a problem with the way you are dealing with pointers. Review your code carefully, or try running in a debugger. -- NOTE: messages sent directly to me, instead of the lists, will be deleted unless they are requests for paid consulting services. Robert Story; NET-SNMP Junkie Support: <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. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders