# Cocos2d not getting the texture which is added to CCTextureCache using thread

I convert the image into texture in a thread using the following line of code to reduce the image to texture converting time.

But when i retrieve this image from cache i am getting a blank image. If i am calling the above line of code in main thread i am getting the image.

-

There is function in - (void)addImageAsync:(NSString *)filename target:(id)target selector:(SEL)selector I suggest you either use this function or try reading how this function is using thread.

-