User Profile
Collapse
-
and this function sendandreceive is called in many classes. -
Hi,
Method: sendAndReceive
Description: Public method that extracts the raw information from
the dataOutputStrea m passed in. It then sends this
as a message to the IPCAMAClient object and packages
the message returned as a DataInputStream and returns
it back to the caller.
Parameters:
IPCDataOutputSt ream * pMsg - The message to be sent...Leave a comment:
-
this is the whole code
IPCDataInputStr eam* IPCClientDataTr ansfer::sendAnd Receive(IPCData OutputStream * pMsg)
{
IPCInboundSbaNS LWrapperMessage *pReturnMsg = NULL;
if (!this -> PClient -> sendMsg( (IPCSbaNSLWrapp erMessage *)pMsg -> getData(), pReturnMsg )) {
// The errno will be set by now
// Check to see if pReturnMsg has some value, if so
...Leave a comment:
-
Hi thanks a lot.
wat is the way to delete that object since it is not assigned to any pointer?
can u give the syntax for it?
where it should be deleted?
in class where it is created?Leave a comment:
-
Is it necessary to destroy the temporary objects?
Hi,
i have a line in a code
return new IPCDataInputSba NSLWrapperMessa geStream(pRetur nMsg);
in which IPCDataInputSba NSLWrapperMessa geStream is a class
is it neccessary to delete the object which is created in the above step or will it be deleted autmatically? -
ok.thanks.
so,in your opinion there won't be any memory leak.right?Leave a comment:
-
thaks a lot.
you have said that IPCAMAClient destructor will delete the object.
but the destructor is
/*************** *************** *************** *************** ****
Method: ~IPCAMAClient
Description: The destructor. Does nothing
Parameters: None
Returns: void
*************** *************** *************** *************** ****/
IPCAMAClient::~ IPCAMAClient(...Leave a comment:
-
and one more info
IPCClientDataTr ansfer is wrapper class around IPCAMAClient.Leave a comment:
-
ok.thanks a lot.
there are no virtual functions in IPCClientDataTr ansfer.C class.
in this line
this -> PClient = new IPCAMAClient (&tcpProfile, clientPriority) ;
a new instance has been created for IPCAMAClient class.
but i dont think it is a derived class of IPCClientDataTr ansfer.C class.
whether still the memory leak problem exist because the IPCClientDataTr ansfer.C class destructor...Leave a comment:
-
how to use the virtual destructor?
Hi all,
I have a piece of code like this
constructor:
IPCClientDataTr ansfer::IPCClie ntDataTransfer (RWCString serviceName) :Valid(FALSE)
{
NSTcpProfile tcpProfile;
int clientPriority = 1;
tcpProfile.Bloc kingOnConnect = TRUE;
tcpProfile.Bloc king = TRUE;
strcpy(tcpProfi le.ServiceName, serviceName);
strcpy(tcpProfi le.TcpHostName,...
No activity results to display
Show More
Leave a comment: