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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|