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

smb_dir file missing on Xcode Project -[smb_dir not included in TOSMBClient/libdsm/bdsm] #19

Closed
narendra-ct opened this issue May 22, 2016 · 6 comments

Comments

@narendra-ct
Copy link

Hi Tim,

I have tried to create a folder by using TOSMBClient and to create a folder it requires a method names as

**int smb_directory_create(smb_session s, smb_tid tid, const char path);

method is available in smb_dir.h file, but the file is not included in TOSMBClient.Please include the file and update the framework if possible as early.

/**

  • @file smb_dir.h is missing
    */

Thanks,
Narendra V

@TimOliver
Copy link
Owner

TimOliver commented May 23, 2016

Hi there!

Um, it should already be in there! I upgraded the framework to use the latest version of libdsm a few days ago:

https://github.com/TimOliver/TOSMBClient/blob/master/TOSMBClient/libdsm/bdsm/smb_dir.h

It's not exposed on the Objective-C level yet. That needs to be implemented in TOSMBClient and I don't have the time at the moment to that myself. That's being tracked here: #3

@narendra-ct
Copy link
Author

yes, i can see in https://github.com/TimOliver/TOSMBClient/blob/master/TOSMBClient/libdsm/bdsm/smb_dir.h

and in finder also I'm able to find but when i include TOSMBClient in app its showing default i have to add it manually . After adding I'm not able to call the methods which are in smb_dir.h

@TimOliver
Copy link
Owner

Oh! Whoops! You're right! It's not actually in the project! I'm not sure how that happened!
Thanks for that! I just re-added it to the project and committed it.

@narendra-ct
Copy link
Author

narendra-ct commented May 24, 2016

Hi thanks for the update and I'm able to create directories now. Im having one issue here

if (path.length == 0 || [path isEqualToString:@"/"]) {
    smb_share_list list;
    size_t shareCount = 0;
    **smb_share_get_list(self.session, &list, &shareCount);**

some times its crashing on the about line (smb_share_get_list(self.session, &list, &shareCount); with BAD_ACCESS, please let me know any thing to update.

Thanks,
Narendra

@TimOliver
Copy link
Owner

TimOliver commented May 24, 2016

No problems!

Umm, sorry. I'm still learning how libdsm handles myself, so I can't offer any explanation for that. Off the top off my head, it MIGHT be a threading issue if two threads are trying to use the same copy of self.session, or it could be a proper issue in libdsm.)

If you find out what's causing it, please let me know! :)

@narendra-ct
Copy link
Author

hi,

I got crash multiple times while downloading the large files from network with the following error, could you please helpme on this.

TOSMBClientExample(220,0x16e0a3000) malloc: *** error for object 0x15711d600: incorrect checksum for freed object - object was probably modified after being freed.

Thanks,
Narendra

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

2 participants