Hi,
I am using Net-SNMP to send SNMP traps using the snmp_send function. Here
are the details of my programming environment:

   1. Microsoft Windows XP SP3 32-bit
   2. Microsoft Visual Studio 2008 Professional Edition
   3. Net-SNMP version 5.4.2.1
   4. Hardware: Intel Core 2 Duo processor (3.0Ghz), 3GB DDRII RAM, 160GB
   Samsung HDD

I ran into a couple of problems while providing error logging support, and
sending the trap itself. Here are the details:

   - ss = snmp_add(&session, netsnmp_transport_open_client("TrapDemo",
   session.peername), NULL, NULL);
      - If the function call fails, and ss = NULL, snmp_sess_perror does not
      return an error string; it just returns a blank string. The function call
      was 'snmp_sess_perror("TrapDemo", &session);', and the output was
      "TrapDemo:".
      - snmp_send(ss, pdu)
      - Although the function works fine, while debugging, I get the
      following message twice when this function is executed:
      - "Windows has triggered a breakpoint in NetSNMPDemo.exe.
      This may be due to a corruption of the heap, which indicates a bug in
      NetSNMPDemo.exe or any of the DLLs it has loaded.
      This may also be due to the user pressing F12 while NetSNMPDemo.exe
      has focus.
      The output window may have more diagnostic information."
      - Also, the debug output has the line: "HEAP[NetSNMPDemo.exe]: Invalid
      Address specified to RtlFreeHeap( 00330000, 00355F38 )".

I desperately need workarounds for the above problems. Please help!!

-- 
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
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to