Quantcast
Viewing all articles
Browse latest Browse all 8068

Segmentation fault: 11 building AWS S3 iOS Module

AmazonS3Client *s3 = [[[AmazonS3Client alloc] initWithAccessKey:ACCESS_KEY_ID withSecretKey:SECRET_KEY] autorelease];
    s3.endpoint = [AmazonEndpoints s3Endpoint:US_WEST_2];
 
    // Create the picture bucket.
    S3CreateBucketRequest *createBucketRequest = [[[S3CreateBucketRequest alloc] initWithName:@"snapz" andRegion:[S3Region USWest2]] autorelease];
    S3CreateBucketResponse *createBucketResponse = [s3 createBucket:createBucketRequest];
    if(createBucketResponse.error != nil)
    {
        NSLog(@"Error: %@", createBucketResponse.error);
    }
the [s3 createBucket] call is causing my host application to crash. testing the module with titanium.py run the code works without error.

anyone have any ideas how this can be? my guess is may have something to do with multithreading but don't know how to go about debugging/fixing it.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>