> I already thougth about this possibility .
> The error above ("wrongLength") appeared with the following code:> netsnmp_watcher_info *winfo = netsnmp_create_watcher_info( > notificationEmail, > strlen(notificationEmail), > ASN_OCTET_STR, > WATCHER_FIXED_SIZE); <====== Exactly. Just as Robert said. You've specified to the watcher that the string has a fixed size value. So it will *only* accept a new value that has the same length as the initial string. The code fragment that I sent you used "WATCHER_MAX_SIZE" instead of "WATCHER_FIXED_SIZE", which *does* allow new values that aren't exactly the same length as the original. > winfo->data_size = strlen( notificationEmail ); > //winfo->max_size = sizeof( notificationEmail ); If you're using 'strlen' when creating the 'winfo' structure, then you must use 'sizeof' here. Or vice versa. You need to specify both sizes - it doesn't matter which order. But you *must* declare this as a MAX size, not a FIXED size watcher. Dave ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Net-snmp-users mailing list [EMAIL PROTECTED] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
