SNMP++ Address class
McWilliams, Gary
gmcwilliams____cccnetsys.com
Wed Apr 19 13:04:53 CEST 2000
Maybe I missed something, but...
The Address class has no constructor (missing in .h file & .cpp file).
The Address class contains an unsigned char array (address_buffer) that
therefore never gets initialised.
IpAddress derives from Address.
During construction it does not initialise address_buffer.
The copy constructor will copy the address_buffer if the current address is
not valid, but will leave it in an uninitialised state if the address is not
valid.
These leaves me very confused.
I am trying to insert IpAddress objects into a std::list. It generally
works, however at very infrequent intervals, we get a crash during the
std::list destruction. May be linked to the above, may not be, we are still
looking into this. However as the std::list will call the copy ctor to get
it's own copy of the object, I was just looking at this.
Anyone have any ideas?
Did I miss something (am I just plain stupid)?
--
Gary McWilliams
Principal Engineer
CCC Network Systems Ltd, Belfast, N.Ireland
http://www.cccnetsys.com
More information about the AGENTPP
mailing list