Dealloc is not called even after release. Here is my code for initialization.
@interface PPTileMap : CCTMXTiledMap
{
}
@end
@implementation PPTileMap
-(void)dealloc
{
printf("Dealloc called\n");
}
@end
//allocation
PPTileMap *tileMap = [[PPTileMap alloc] initWithTMXFile:tilemapFile];
//release
[tileMap release];
tileMap = nil;
When I use tiledMapWithTMXFile then it will..but crashes after loading thread. Why dealloc is not called for above code?