1. bug fixed on candidate window hang (capture issue)

2. Remove CFileMapping by using Cfile instead