Changelog: Don't try to HeapFree a handle returned by LoadResource. To quote msdn (http://msdn.microsoft.com/en-us/library/ms648046.aspx) on this issue: 1. "the return value is a handle to the data associated with the resource" 2. "Do not pass this handle to the GlobalLock or GlobalFree function". With the best regards, Aleksey Bragin.