- [Not A Type _cfTypeID]: message sent to the freed instance

I use the code to create various effects for the image, such as contrast, hue, saturation, etc .; and used apple glImageProcessing code, I switch from my view to glimgeProcessing and save the resulting image as a uiimage property in the uiimage file. After returning from the Eagle view, I used the viewDidAppear function to change the image to an updated image

 "-[Not A Type _cfTypeID]: message sent to deallocated instance" 

my code

 NSLog(@"app imafe is %@",app.image); [imageView setImage:app.image]; 

my journal answer

 2013-07-26 13:39:37.293 imageProcessingApp[1019:11303] app imafe is <UIImage: 0x73c4100> 2013-07-26 13:39:39.482 imageProcessingApp[1019:11303] app imafe is <UIImage: 0x90e0420> 2013-07-26 13:39:39.483 imageProcessingApp[1019:11303] *** -[Not A Type _cfTypeID]: message sent to deallocated instance 0x90e0b60 

when trying to set an image on my imageView .

help me please

+6
source share
1 answer

See how you release app.image or somewhere. Perhaps you have additional

 CGImageRelease(app.image.CGImage); 

or

 [app.image release] 

Note that you do not need to display the image after the ALAsset.fullResolutionImage and fullScreenImage methods

0
source

Source: https://habr.com/ru/post/950336/


All Articles