TOSMBClient icon indicating copy to clipboard operation
TOSMBClient copied to clipboard

Memory allocated while archiving a file to NAS is not getting released until the app restart

Open malleswariklv opened this issue 7 years ago • 0 comments

Hi, We are using TOSMBClient in our project to archive the videos/images to NAS. If our app has a video having a size of 1GB then we could see the increase in available memory after deleting the video file. But, if we archive the same file to NAS and then delete the file then we could not see increase in available memory until we restart the app.

Note: We are reading the available memory through code snippet let freeSpace = (systemAttributes[FileAttributeKey.systemFreeSize] as? NSNumber)?.doubleValue.

Is it because of transferred buffers are still held by the app? Is there any way to release these buffers?

Thanks in advance, Malleswari.

malleswariklv avatar Mar 28 '18 12:03 malleswariklv