login about faq

I have written the following Objective-C code to append two zip files:

CkoZip* raw = [[CkoZip alloc] init];
[raw UnlockComponent:@"Hello, world!"];

NSString* rawDir = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"raw"];
NSString* patchDir = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"zip"];
[raw OpenZip:rawDir];
[raw AppendZip:patchDir];

But in the last line, I encounter this runtime error:

ZipTest(10504,0x10c51a300) malloc: *** error for object 0x7fe251c26310: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

What is the problem? Am I using AppendZip wrong?

asked Jul 23 '15 at 03:28

sadjad's gravatar image


Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jul 23 '15 at 03:28

Seen: 779 times

Last updated: Jul 23 '15 at 03:28

powered by OSQA