Core Graphics Problems (Update)

A while back I wrote about some Core Graphics code that gave rise to memory management errors when (a.) compiled for iPhone OS 3.0 and (b.) run on the iPhone Simulator; the core of the problematic code looked like this:

UIGraphicsBeginImageContext(CGSizeMake(300,44));
UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();

This code did not throw any errors on my device, but since I had already upgraded that device to the 3.1.2 OS, I wasn’t sure whether or not it would happen on a device running the 3.0 OS. Fortunately, Jeffrey Scofield was nice enough to test the code on his iPhone 2G, running OS 3.0.1, and report that no problems appeared.

So it looks like this is a Simulator-only problem, which means it can be largely ignored.

Share and Enjoy:
  • Twitter
  • Facebook
  • Digg
  • Reddit
  • HackerNews
  • del.icio.us
  • Google Bookmarks
  • Slashdot
This entry was posted in iPhone. Bookmark the permalink.

Comments are closed.