Uninitialize Memory read

javalist javalist____21cn.com
Mon Feb 21 14:53:53 CET 2000


Hello Agent++ Users:

      Agent++ Version:v3.3

      Host Machine/Compiler:Ultra2/gcc 2.91.66

      As  I ran agent++ in purify,it give this UMR(Uninitialize Memory
      Read) in Request.cpp line 858 list below:
      
     852   UdpAddress   from;
    853   snmp_version version;
    854   OctetStr     community;
    855 
    856   int status = snmp->receive(tvptr, pdu, from, version, community);
    857   CTarget target(from);
    858   target.set_version(version);
    859   target.set_readcommunity(community);

    it  seems  that  if  snmp receive nothing u also use that variable
    version which is not initialize,so purify give this error msg,as I
    add  a  line  "version  =  version1;"  after  line  853,purify run
    silently..

Best Regards
                               mailto:javalist at 21cn.com





More information about the AGENTPP mailing list