Guest User

Untitled

a guest
Feb 12th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.34 KB | None | 0 0
  1. *** -[__NSArrayM release]: message sent to deallocated instance 0x18aef0
  2.  
  3. //**AppDelegate.h**
  4. @interface TumBhiAppDelegate : UIResponder {
  5. NSMutableArray *arrDetailsByCategory;
  6. }
  7. @property (nonatomic, retain) IBOutlet NSMutableArray *arrDetailsByCategory;
  8. -(IBAction)doneProcessing:(id)sender;
  9. @end
  10.  
  11. //**AppDelegate.m**
  12. #import "AppDelegate.h"
  13. #import "Server.h"
  14.  
  15. @implementation AppDelegate
  16. @synthesize arrDetailsByCategory;
  17. //Once processing is done push the view
  18. -(IBAction)doneProcessing:(id)sender
  19. {
  20. BaseContentViewController *baseController = [[BaseContentViewController alloc] initWithNibName:@"BaseContentViewController" bundle:nil];
  21. [self.navigationController pushViewController:baseController animated:YES];
  22. [baseController release];
  23. }
  24.  
  25. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  26. {
  27. arrDetailsByCategory = [[NSMutableArray alloc] init];
  28. self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
  29. // Override point for customization after application launch.
  30. self.viewController = [[TumBhiViewController alloc] initWithNibName:@"TumBhiViewController" bundle:nil];
  31.  
  32. self.navigationController = [[UINavigationController alloc]initWithRootViewController:self.viewController];
  33. [self.navigationController setNavigationBarHidden:YES];
  34.  
  35. self.window.rootViewController = self.navigationController;
  36. [self.window makeKeyAndVisible];
  37. //getDetails is called 5-6 time
  38. //arrDetailsByCategory is populated accordingly
  39. [Server getDetails:@"ABC"];
  40. [self doneProcessing:nil];
  41. return YES;
  42. }
  43. @end
  44.  
  45. //**Server.h**
  46. @interface ServerCommunication : NSObject{
  47. }
  48. -(BOOL)getDetails:(NSString *)str
  49. @end
  50.  
  51. //**Server.m**
  52. #import "Server.h"
  53. #import "AppDelegate.h"
  54. @implementation ServerCommunication
  55.  
  56. -(BOOL)getDetails:(NSString *)str
  57. {
  58. NSMutableArray *arrFinal = [NSMutableArray array];
  59. //call web-service populate arrFinal
  60. [[[AppDelegate GetAppDelegate] arrDetailsByCategory] addObjectsFromArray:arrFinal];
  61. }
  62. @end
  63.  
  64. *** -[__NSArrayM release]: message sent to deallocated instance 0x7aa0870
  65. [Switching to process 636 thread 0x15903]
  66. [Switching to process 636 thread 0x15903]
  67. sharedlibrary apply-load-rules all
  68. (gdb)
  69.  
  70. 0x01920db0 <+0096> testb $0x1,(%eax)
  71. 0x01920db3 <+0099> je 0x1920ded <___forwarding___+157>
  72. 0x01920db5 <+0101> mov %edi,0x4(%esp)
  73. 0x01920db9 <+0105> movl $0x0,0x18(%esp)
  74. 0x01920dc1 <+0113> movl $0x0,0x14(%esp)
  75. 0x01920dc9 <+0121> movl $0x0,0x10(%esp)
  76. 0x01920dd1 <+0129> movl $0x0,0xc(%esp)
  77. 0x01920dd9 <+0137> movl $0x0,0x8(%esp)
  78. 0x01920de1 <+0145> movl $0x15,(%esp)
  79. 0x01920de8 <+0152> call 0x198ec10 <__CFRecordAllocationEvent>
  80. 0x01920ded <+0157> mov -0x10(%ebp),%eax
  81. 0x01920df0 <+0160> mov %eax,(%esp)
  82. 0x01920df3 <+0163> call 0x19fcbf6 <dyld_stub_sel_getName>
  83. 0x01920df8 <+0168> mov %edi,0x10(%esp)
  84. 0x01920dfc <+0172> mov %eax,0xc(%esp)
  85. 0x01920e00 <+0176> add $0xa,%esi
  86. 0x01920e03 <+0179> mov %esi,0x8(%esp)
  87. 0x01920e07 <+0183> lea 0x12e6aa(%ebx),%eax
  88. 0x01920e0d <+0189> mov %eax,0x4(%esp)
  89. 0x01920e11 <+0193> movl $0x3,(%esp)
  90. 0x01920e18 <+0200> call 0x196bad0 <CFLog>
  91. 0x01920e1d <+0205> int3
  92. 0x01920e1e <+0206> call 0x19fc8b4 <dyld_stub_getpid> //**Dies here with Thread 5**
  93. 0x01920e23 <+0211> mov %eax,(%esp)
  94. 0x01920e26 <+0214> movl $0x9,0x4(%esp)
  95. 0x01920e2e <+0222> call 0x19fc908 <dyld_stub_kill>
  96. 0x01920e33 <+0227> xor %edi,%edi
  97. 0x01920e35 <+0229> jmp 0x192112e <___forwarding___+990>
  98. 0x01920e3a <+0234> lea 0xed29f(%ebx),%eax
  99. 0x01920e40 <+0240> mov %eax,0x4(%esp)
  100. 0x01920e44 <+0244> mov %esi,(%esp)
  101. 0x01920e47 <+0247> call 0x19fcc56 <dyld_stub_strcmp>
  102. 0x01920e4c <+0252> test %eax,%eax
  103. 0x01920e4e <+0254> mov %edi,%eax
  104. 0x01920e50 <+0256> mov %eax,%edi
  105. 0x01920e52 <+0258> mov %eax,-0x14(%ebp)
  106. 0x01920e55 <+0261> jne 0x1920e63 <___forwarding___+275>
  107. 0x01920e57 <+0263> mov 0x130e5a(%ebx),%eax
  108. 0x01920e5d <+0269> mov -0x14(%ebp),%ecx
  109. 0x01920e60 <+0272> mov (%ecx,%eax,1),%edi
  110. 0x01920e63 <+0275> mov %edi,(%esp)
  111. 0x01920e66 <+0278> call 0x19fcad6 <dyld_stub_object_getClass>
  112. 0x01920e6b <+0283> mov 0x1255ee(%ebx),%ecx
Add Comment
Please, Sign In to add comment