invalid attempt to access ALAssetPrivate past the lifetime of its owning ALAssetsLibraryBasically it means what it says. Library was closed before reading the image data was completed. As result upload failed due missing or too short data. ALAssetsLibrary Class Reference says:
Showing posts with label NSStreamDelegate. Show all posts
Showing posts with label NSStreamDelegate. Show all posts
Monday, October 24, 2011
Invalid attempt to access ALAssetPrivate past the lifetime of its owning ALAssetsLibrary
Trying to upload hundreds of images from device, but application occasionally crashes with this error note:
Labels:
ALAsset,
ALAssetsLibrary,
iOS5,
NSStreamDelegate,
NSTimer
Thursday, July 1, 2010
Class does not implement the 'NSStreamDelegate' protocol
Got this warning after upgrading to Xcode 3.2.3. To fix it add NSStreamDelegate into your class interface:
On Mac OS X 10.6 SDK (used by iPhone OS 4) delegate methods are generally defined in formal protocols rather than informal protocols as before, which means you have to declare the protocol conformance in the class interface of the delegate. More info at Mac OS X SDK release notes.
NSStreamDelegate is defined for Cocoa, but not Cocoa Touch. iPhone stream:handleEvent: is an informal delegate method.@interface MyClass: NSObject {}
@interface MyClass: NSObject <NSStreamDelegate> {}
On Mac OS X 10.6 SDK (used by iPhone OS 4) delegate methods are generally defined in formal protocols rather than informal protocols as before, which means you have to declare the protocol conformance in the class interface of the delegate. More info at Mac OS X SDK release notes.
Subscribe to:
Posts (Atom)
