pirafrank / google-toolbox-for-mac

Automatically exported from code.google.com/p/google-toolbox-for-mac
Apache License 2.0
0 stars 0 forks source link

UIImageBeginImageContext() is not thread-safe on the iPhone #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use the UIImage category on a second thread

What is the expected output? What do you see instead?
Expected: EXC_BAD_ACCESS if another thread affects the context whilst drawing.
Actual: As above. Inconsistent reproduction, due to it requiring specific
thread interleaving.

What version of the product are you using? On what operating system?
Version: Latest source code.
OS: iPhone/Any.

Please provide any additional information below.
I suggest reading
http://vocaro.com/trevor/blog/2009/10/12/resize-a-uiimage-the-right-way/
for details on how to perform the same operations using pure CoreGraphics
functions, which are thread-safe.

Original issue reported on code.google.com by oliver.l...@gmail.com on 17 Jan 2010 at 4:53