Projects > cpp > Issues > Bug #2998

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

InputStream is not closed after failed texture load

Bug #2998 [Closed]
jwa_javatopia_com 2013-10-17 17:42 . Updated about 2 years ago

In the cc2dx android activity code, when a texture is loaded but fails (as in it was bigger than 2048 x 2048), the InputStream used to load the texture is not closed in the try/catch handler. ADT/Eclipse will issue a warning about this. The side effect here is that the app will not resume after background b/c it tries to reload that texture and can’t because the file is already open.

walzer@cocos2d-x.org 2014-10-08 02:59

Redmine issue system is closed, we are using github issue system instead.

This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8232

Atom PDF

Status:Closed
Start date:2013-10-17
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:android
Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.