Multi-tHreaded applications that own a pointer to a
TitanImage while creating a new thread will have their
TitanImage deleted by Titan's DllMain.
Reason: DllMain() unconditionally calls
TitanCleanupImages() not only on DLL_PROCESS_ATTACH but
also on DLL_THREAD_ATTACH.
(It took me quite some time to find out why my
pixeldata pointer was overwritten with 0xFEEEFEEE by
some strange thread. It was done by LocalFree)
A patch that simply ignores invokations of DllMain wuth
DLL_THREAD_ATTACH and DLL_THREAD_DETACH is attached.
patch for crash on thread attach