why IntPtr.size is 4 on Windows x64?

Adam Lee picture Adam Lee · Feb 9, 2012 · Viewed 14k times · Source

I think I should get 8 when I use IntPtr.Size. However I still get 4 on x64 machine with Widnows 7 x64, why?

Answer

Bartosz Wójcik picture Bartosz Wójcik · Feb 9, 2012

check your file CPU architecture, is it x86? It should be CPU any / 64bit