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())
{
::DeleteFile("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.
Re: Delete DCM files are FAILED
On Jun 19, 2:50 pm, kammannagari.an...@gmail.com wrote:[color=blue]
> 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())
> {
> ::DeleteFile("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.[/color]
Come on... do some basic search before posting on a group.. do you
really see this as a VC++ programming discussion group?