3.2.5 Multiple Threads and GDI Objects

There is a potential danger for applications that have multiple threads sharing GDI objects, such as palettes, DCs, regions, etc. The problem is that for reasons of speed, access to GDI objects is not serialized. This creates a possibility of unpredictable and unpleasant results if one thread deletes a GDI object while another thread is using it.