title: iPhone - Objective C - PLCameraPreviewView class
body: <p>My app uses camera to take a photo.<br>
  When I open the camera the second time (after I opened it the first time and closed it),<br>
  the app crashes with this message:  </p>
  
  <pre><code>*** -[PLCameraPreviewView isKindOfClass:]: message sent to deallocated instance 0x4193380 
  </code></pre>
  
  <p>what is PLCameraPreviewView?<br>
  do you know what is happening, I just use the following code to open the camera:  </p>
  
  <pre><code>self.imagePicker = [[[UIImagePickerController alloc] init] autorelease];
  imagePicker.delegate = self;
  imagePicker.sourceType =  UIImagePickerControllerSourceTypeCamera;
  imagePicker.allowsEditing = NO;
  [self presentModalViewController:imagePicker animated:YES];
  </code></pre>