Hi,
The _snmp_sess_asynch_send() function deallocates the PDU allocated by the
snmp_create_pdu call.
In the context of Windows, there is a major drawback to this:
1. snmp_create_pdu does not allocate memory for PDU enterprise, and
community; the user application has to allocate them separately.
2. Hence, the PDU enterprise and community strings are allocated in the
local heap of the user application.
3. The _snmp_sess_asynch_send() function deallocates the PDU after it is
sent (a call to snmp_free).
4. snmp_free also deallocates the enterprise and community strings. These
however are not in the local heap of the loaded DLL.
5. This causes Windows to throw a user breakpoint (while debugging), and
causes the application to freeze (while running in release mode).
In my application, I have fixed this problem, but I thought I should let you
guys know of the issue.
--
Regards,
Sayan Chaliha
Webyog Softworks Private Limited
2nd Floor, Novel Team Building
#10, 100 Feet Ring Road
BTM Layout 1st Stage
Bangalore - 560068
+91-9743357501
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders