My VS2010 was installed on x64 machine. I find that it cannot attach x64 process but it works well when attaching x86 process.
After having Googled, I got the answer that there is a file name Program in C:\ which confused VS2010. Delete that file and problem solved.