最近使用SnmpExtensionQuery函数时,获取信息程序运行结果正确,但程序运行在Debug状态时一直提示int 3 中断,Release版运行正常;在使用Google搜索及仔细阅读MSDN后才发现,程序和SNMP sever之间使用的是动态内存进行交换;具体也就是你需要访问节点的OID( SnmpVarBind.name.ids)需要你的才程序动态申请内存(由Snmp Server进行释放),收到的返回值中不定长数据类型需要你的程序释放内存(如SnmpVarBind.value.asnValue.string.stream);GOOGLE仅搜索到一篇相关内容:>As part of the development of an application I am working on, I need>to get the MAC address of the local machine. I have found a way to do>this using SNMP.>>However, I am having trouble integrati阅读全文>
发表于 @ 2007年06月11日 13:24:00|评论(loading...)|编辑