Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8353857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:23:09+00:00 2026-06-09T09:23:09+00:00

I have an error File::tell() shown in XCode, using Unrar4iOS Framework, when I am

  • 0

I have an error File::tell() shown in XCode, using Unrar4iOS Framework, when I am calling the method:

-(NSArray)unrarListFiles;

the compiler shows me the a bunch of errors, where the last from stack is ftell, if someone knows, the origin if where probabily i am wrong, plese reply…
the full procedure what i want to do is to extrat the int number of files archived, from code below:

int nuberOfPages = 0;
NSLog(@"Filepath: %@", filePath);
Unrar4iOS *_unrar = [[Unrar4iOS alloc] init];
BOOL ok = [_unrar unrarOpenFile:filePath];
if (ok) {

    NSArray *files = [_unrar unrarListFiles];
    for (NSString *filename in files) {
        NSLog(@"File: %@", filename);
    }
    nuberOfPages = files.count;

    [unrar unrarCloseFile];
} else {
    [unrar unrarCloseFile];
}
[_unrar release];
return nuberOfPages;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T09:23:10+00:00Added an answer on June 9, 2026 at 9:23 am

    this is because that.
    in source code.

    -(BOOL) unrarOpenFile:(NSString*)rarFile
    
    
    
    -(BOOL) unrarCloseFile
    

    the function above. they did not do anything.

    this function do real open and real close;

    -(NSArray *) unrarListFiles {
    int RHCode = 0, PFCode = 0;
    
        //here  if you opened a file that is not rar.
        //this function RARReadHeaderEx will EXC_BAD_ACCESS (SIGSEGV)
        //so, you can check it return value
    [self _unrarOpenFile:filename mode:RAR_OM_LIST];
    
    NSMutableArray *files = [NSMutableArray array];
    while ((RHCode = RARReadHeaderEx(_rarFile, header)) == 0) {
        NSString *_filename = [NSString stringWithCString:header->FileName encoding:NSASCIIStringEncoding];
        [files addObject:_filename];
    
        if ((PFCode = RARProcessFile(_rarFile, RAR_SKIP, NULL, NULL)) != 0) {
            [self _unrarCloseFile];
            return nil;
        }
    }
    
    [self _unrarCloseFile];
    return files;
    

    }

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have checked the id exists in the R.java file still it shows error
I have this error when I am trying to read the file: Exception in
I have a file called error.log on my server that I need to frequently
I have a function in a VB.Net script file, but it produces the error
I have some code to load a exe file and shows its CIL code
I am trying to call method that creates a file, however I am calling
I install plugin open_id_authentication and have this error: /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta/lib/active_support/dependencies.rb:167:in `require': no such file to
I have a large xml file (approx. 10 MB) in following simple structure: <Errors>
Have error ValueError: time data '2012-03-15 9:45:00 AM' does not match format '%Y-%m-%d %H:%M:%S'
I have error in line 2 and 13 in PHP 5.2, I have no

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.