Bad UIImagePickerController

It took me more than 2 hours to fix this “Memory warning” issue with the UIImagePickerController. My Application worked very well in the simulator. On the Phone i got this Memory warning every time i took a picture with the camera. The picker returned an UIImage = nil. This is my code:

-(void)viewDidLoad 
{
     self.imgPicker = [[UIImagePickerController alloc] init]; 
     self.imgPicker.allowsImageEditing = YES;
     self.imgPicker.delegate = self; 
     self.imgPicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
}
 
-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info 
{
     dispimage = [[info objectForKey:UIImagePickerControllerOriginalImage]retain];
     [picker dismissModalViewControllerAnimated:YES]; 
}
 
-(IBAction)open
{
    if(self.imgPicker == nil)
    { 
         self.imgPicker = [[UIImagePickerController alloc] init]; 
         self.imgPicker.allowsImageEditing = YES;
         self.imgPicker.delegate = self; 
         self.imgPicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
    }
    [self presentModalViewController:self.imagePicker animated:YES]; 
    [self.imagePicker release]; 
}
 
-(IBAction) print
{ 
      if(dispimage != nil)
      {
            imageView.image=dispimage; 
      }
};

And the solution? I’ve just to closed all open applications, which where a lot! It seems to me it is also a memory leak bug in current 4.0.x releases. Hopefully it will be fixed with the next iOS release.

So long, i’m going to bed now.

Tagged: , , , , ,

Apple, nicht nur geile Produkte…

thoughts

Der Akku des über 3 Jahre alten Macbooks meines Vaters ist regelrecht explodiert. Garantie hatte das Teil auch nur total 1 Jahr. Von dieser ist im Normalfall der Akku ausgeschlossen.

Tagged: , ,

iPhone Hack mit Blackra1n

Habe eben mein iPhone 3G (könnt euch die Comments spaaren, JA ist noch kein 3Gs) mit blackra1n “gehackt”. Ich mag mich noch erinnern, wie komplex es noch mit den ersten iPhones war.

Tagged: , ,

OSX Performance

mein OSxNun arbeite ich bereits drei Tage mit dem aktuellen OSX 10.6. Erst heute ist mir aufgefallen wieviele Applikationen etc ich offen habe und nichts ruckelt…

Tagged: ,

OSX 10.6

Seit letzten Freitag (28.08.2009) kann man das neue OSX 10.6 in den Läden kaufen. Zu dritt sind wir auf Zürich in Glatt-Zentrum gefahren um dem neuen Release auch den entsprechenden Respekt und Ehrfurcht entgegen zu bringen ;-)

Auf meinen Office und Home MacBooks ist die neue Software schon fleissig am werkeln. Bis jetzt musste ich nur auf die Fingerscan Applikation verzichten. Alle anderen Applikationen laufen tadellos. Mein RS232 Terminal Client (ZTerm) wollte lediglich die Rosetta Komptibilität installiert haben (passierte alles automatisch). Danach lief auch diese anstandslos!

Tagged: ,