SMBClient icon indicating copy to clipboard operation
SMBClient copied to clipboard

some questions about write files

Open MountainTao opened this issue 7 years ago • 5 comments

I write files in the calling method, bufferSize is set to a large, for example 1000kb, after the operation, in the following code position "long bytesWritten = smb_fwrite (self) share) for server smbSession, self - > _fileID, (void *). The data bytes, bytesToWrite); ", A crash was happened, can you help me to reslove the problem?

MountainTao avatar Jul 04 '18 09:07 MountainTao

I write files in the calling method, bufferSize is set to a large, for example 1000kb, after the operation, in the following code position "long bytesWritten = smb_fwrite (self) share) for server smbSession, self - > _fileID, (void *). The data bytes, bytesToWrite); ", A crash was happened, can you help me to reslove the problem?

I have the same , Did you fix this problem? please tell me , thx

MrWilsonXu avatar Dec 21 '21 07:12 MrWilsonXu

I write files in the calling method, bufferSize is set to a large, for example 1000kb, after the operation, in the following code position "long bytesWritten = smb_fwrite (self) share) for server smbSession, self - > _fileID, (void *). The data bytes, bytesToWrite); ", A crash was happened, can you help me to reslove the problem?

I have the same , Did you fix this problem? please tell me , thx

I wouldn't use this anymore. This library relies on SMB v1 which is deprecated. And if sou check the last updates are from 4 years ago.

Check out TimOliver SMB Client or amosavian SMB Or even better use the native framework implemented since iOS 14

beks6 avatar Dec 21 '21 12:12 beks6

I write files in the calling method, bufferSize is set to a large, for example 1000kb, after the operation, in the following code position "long bytesWritten = smb_fwrite (self) share) for server smbSession, self - > _fileID, (void *). The data bytes, bytesToWrite); ", A crash was happened, can you help me to reslove the problem?

I have the same , Did you fix this problem? please tell me , thx

I wouldn't use this anymore. This library relies on SMB v1 which is deprecated. And if sou check the last updates are from 4 years ago.

Check out TimOliver SMB Client or amosavian SMB Or even better use the native framework implemented since iOS 14

Thank you bro !

MrWilsonXu avatar Dec 22 '21 06:12 MrWilsonXu

I found TimOliver SMB Client use the same SMB version , it's dons't work for me

MrWilsonXu avatar Dec 22 '21 08:12 MrWilsonXu

I found TimOliver SMB Client use the same SMB version , it's dons't work for me

Than try one of the other two mentioned options. Amosavian states explicit fir v2/3 support and I assume the native framework supports v2/3 also

beks6 avatar Dec 22 '21 09:12 beks6