Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some questions about write files #18

Open
MountainTao opened this issue Jul 4, 2018 · 5 comments
Open

some questions about write files #18

MountainTao opened this issue Jul 4, 2018 · 5 comments

Comments

@MountainTao
Copy link

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?

@MrWilsonXu
Copy link

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

@beks6
Copy link

beks6 commented Dec 21, 2021

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

@MrWilsonXu
Copy link

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
Copy link

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

@beks6
Copy link

beks6 commented Dec 22, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants