title: Realm not working after stoping running app?
body: <p>I am testing Realm by adding 2000 records to it. Problem is that when i stopped running application the deleteAllObject method is not calling even any line is not executing. I think problem in beginWriteTransaction method. </p>
  
  <p>This is my code:</p>
  
  <pre><code>RLMRealm *realm = [RLMRealm defaultRealm];
  
      [realm beginWriteTransaction];
  
      [realm deleteAllObjects];
  
      [realm commitWriteTransaction];
  
      for (int i = 0 ; i &lt; 2000; i++) {
  
          [realm beginWriteTransaction];
  
          PeopleInformation *info = [[PeopleInformation alloc] init];
  
          info.name = [NSString stringWithFormat:@"%@ %d",@"Rohit",i];
          info.city = @"Delhi";
  
          [realm addObject:info];
          [realm commitWriteTransaction];
  
      }
  
  NSLog(@"all object %@", [PeopleInformation allObjects]);
  </code></pre>