Thursday, September 3, 2009

Simple Way to tell if your .NET app is running in 32bit or 64bit Mode

Here is a quick and easy was to tell if your .NET app is running in 32 bit or 64 bit mode:


C#

bool is64bit = IntPtr.Size == 8;


VB.NET

Dim is64bit As Boolean = IntPtr.Size = 8



More information on from:

http://channel9.msdn.com/forums/Coffeehouse/465445-How-can-I-tell-if-my-NET-application-is-running-in-64bit-on-the-64bit-server/

No comments: