|
From: Banibrata D. <du...@in...> - 2004-04-17 11:18:20
|
in the following snippet of code:
UdpMsg::UdpMsg(int sockId) : mSockId(sockId), mMsgPtr(0), mMsgLen(0)
{
}
int UdpMsg::sendMsg ()
{
int retval=0;
if ((!mMsgPtr) || (!mMsgLen))
return (-1);
if ((retval = send(mSockId, (const void *)mMsgPtr, mMsgLen, 0)) == -1)
...
}
inspite of initializing all the variable i.e.
int mSockId;
char* mMsgPtr;
int mMsgLen;
in the c'tor, i am still getting the error...
==4975== Syscall param socketcall.send(msg) contains uninitialised or
unaddressable byte(s)
==4975== at 0x3C244752: send (in /lib/i686/libc-2.2.4.so)
==4975== by 0x804C49F: UdpMsg::sendMsg(void) (UdpMsg.C:122)
==4975== by 0x804AE3C: Provider::inboundCallRsp(Context &)
(Provider.C:119)
==4975== by 0x804FAC7: Listener::inboundCallInd(Context &,
basic_string<char, string_char_traits<char>, __default_alloc_template<true,
0> > const &, Listener::ReqType)
why so ?
thanks & regards,
Banibrata Dutta
Hewlett-Packard ISO Pvt. Ltd,
29, Cunningham Road,
Bangalore - 560052, India.
Tel: +91-80-22051796
|