|
From: Nicholas N. <nj...@ca...> - 2004-04-17 11:34:07
|
On Sat, 17 Apr 2004, Banibrata Dutta wrote:
> 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 ?
See section 3.3.5 of the manual again.
(developer.kde.org/~sewardj/docs-2.0.0/mc_main.html#mc-top)
N
|