fix windows compile and running error
initialize member variable
fix indent problems
Merge pull request #7311 from andyque/fixWindowsError

fix windows compile and running error