Delete DCM files are FAILED - DICOM

This is a discussion on Delete DCM files are FAILED - DICOM ; Hi, The below code is written in our application for sending Dicom Images to the SCP. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// int store() { ... IDicomImagesDisp images; images.BindDefault(); IDicomImageDisp iDicomImageObject; iDicomImageObject.BindDefault(); iDicomImageObject = images.ReadFile("abc.dcm"); long lReturnStatus = iDicomImageObject.Send(WideString(szServer),nPort, WideString (szCallingAE), WideString(szCalledAE)) ; .... return ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Delete DCM files are FAILED

  1. Delete DCM files are FAILED

    Hi,

    The below code is written in our application for sending Dicom Images
    to the SCP.
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    int store()
    {
    ...
    IDicomImagesDisp images;
    images.BindDefault();

    IDicomImageDisp iDicomImageObject;
    iDicomImageObject.BindDefault();

    iDicomImageObject = images.ReadFile("abc.dcm");
    long lReturnStatus =
    iDicomImageObject.Send(WideString(szServer),nPort, WideString
    (szCallingAE), WideString(szCalledAE)) ;
    ....

    return lReturnStatus;
    }

    main()
    {
    // deleting the file upon storage success
    if(0 == store())
    {
    :eleteFile("abc.dcm");
    }
    }
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    DeleteFile() method isn't deleting the files more frequently. One or
    two get deleted and the remaining left, which lead to growing memory
    and isn't freeing. And we tried deleting it when the application is
    running - And it says the "file can't be deleted and is in use".

    Application is Implemented in Borland C++ 2007.

    Please suggest us the solution if it is known.

    Thanks,
    Anand.

  2. Re: Delete DCM files are FAILED

    On Jun 19, 2:50 pm, kammannagari.an...@gmail.com wrote:
    > Hi,
    >
    > The below code is written in our application for sending Dicom Images
    > to the SCP.
    > //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    > int store()
    > {
    > ...
    > IDicomImagesDisp images;
    > images.BindDefault();
    >
    > IDicomImageDisp iDicomImageObject;
    > iDicomImageObject.BindDefault();
    >
    > iDicomImageObject = images.ReadFile("abc.dcm");
    > long lReturnStatus =
    > iDicomImageObject.Send(WideString(szServer),nPort, WideString
    > (szCallingAE), WideString(szCalledAE)) ;
    > ...
    >
    > return lReturnStatus;
    >
    > }
    >
    > main()
    > {
    > // deleting the file upon storage success
    > if(0 == store())
    > {
    > :eleteFile("abc.dcm");
    > }}
    >
    > //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    >
    > DeleteFile() method isn't deleting the files more frequently. One or
    > two get deleted and the remaining left, which lead to growing memory
    > and isn't freeing. And we tried deleting it when the application is
    > running - And it says the "file can't be deleted and is in use".
    >
    > Application is Implemented in Borland C++ 2007.
    >
    > Please suggest us the solution if it is known.
    >
    > Thanks,
    > Anand.


    Come on... do some basic search before posting on a group.. do you
    really see this as a VC++ programming discussion group?

+ Reply to Thread