Using strings in MIB Tables

This is a discussion on Using strings in MIB Tables within the SNMP Coders forums, part of the Networking and Network Related category; I am using net-snmp-5.4.1 in Windows MFC and have written a class to create 100 of ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-06-2008
Leif Pitcock
 
Posts: n/a
Default Using strings in MIB Tables

I am using net-snmp-5.4.1 in Windows MFC and have written a class to create 100 of the same type of tables. In the table there are three 1000 byte char arrays. When I make the strings 40 characters or less, everything seems to work fine, however if I make them 50 chars or over (not sure of the exact break point) the program throws an exception in the snmp_free_var function. I placed a breakpoint in the function and everything works except when it attempts to call dataFreeHook. When the strings are 40 chars or less, dataFreeHook is NULL, however, when it is 50 or more characters, there is a value for dataFreeHook. As far as I can tell, my code isn't overwriting memory. Is there a limit to the number of containers that any table can hold? Or is there something else that I am doing incorrectly?

Thanks,
Leif Pitcock


__________________________________________________ __________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i...Dypao8Wcj9tAcJ

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757...un.com/javaone
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:45 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0