User Profile

Collapse

Profile Sidebar

Collapse
sugarva
sugarva
Last Activity: Sep 4 '08, 05:33 AM
Joined: Apr 3 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • and this function sendandreceive is called in many classes.
    See more | Go to post

    Leave a comment:


  • 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...
    See more | Go to post

    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
    ...
    See more | Go to post

    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?
    See more | Go to post

    Leave a comment:


  • sugarva
    started a topic Is it necessary to destroy the temporary objects?
    in C

    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?
    See more | Go to post

  • sugarva
    replied to how to use the virtual destructor?
    in C
    ok.thanks.
    so,in your opinion there won't be any memory leak.right?
    See more | Go to post

    Leave a comment:


  • sugarva
    replied to how to use the virtual destructor?
    in C
    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(...
    See more | Go to post

    Leave a comment:


  • sugarva
    replied to how to use the virtual destructor?
    in C
    and one more info

    IPCClientDataTr ansfer is wrapper class around IPCAMAClient.
    See more | Go to post

    Leave a comment:


  • sugarva
    replied to how to use the virtual destructor?
    in C
    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...
    See more | Go to post

    Leave a comment:


  • sugarva
    started a topic how to use the virtual destructor?
    in C

    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,...
    See more | Go to post
No activity results to display
Show More
Working...