开发者

Animated gif File In NSImageView eats the Memory (Mac Development)

开发者 https://www.devze.com 2023-02-03 20:23 出处:网络
I just try to put Animated gif file with 6 frames acquired from url Request and create nsimage with the response ,,, then set the Image in NSImageView ...

I just try to put Animated gif file with 6 frames acquired from url Request and create nsimage with the response ,,, then set the Image in NSImageView ...

I use this

// Where returnedImage is nsImage I created with response of the connection ..
    [myImageView setImage:[response returnedImage]];

I use this code to change the Image displayed when some user actions happen

I observe that The memory allocated to the program is increased linearly with large scale .. and the application might crash

I make sure that my code has no leaks ...

I do not Know why it is increases , do I have to release the previous开发者_开发百科 Image that was set

Any Idea will be appreciated.


I delete and recreate the NSImageView In the Nib File ... I may be an xcode Deployment bug or something ,,, But i was allocate some memory to graphics card continuously increasing

0

精彩评论

暂无评论...
验证码 换一张
取 消