- fixed threading issue by adding lock statements
- fixed render target memory issue (visual studio bug id = 489723)