If a .NET program directly or indirectly needs to call platform-dependent / native / un managed code, it may crash.
This 32-bit / 64-bit theme came to my mind after I got a new laptop with 64-bit version of Windows 7 installed and tried to develop a SQLite database.
System.Data.SQLite
contains managed code plus unmanaged code. There is a 32-bit version and a 64-bit version, both have the same file name but different sizes, and your EXE should use the correct one.
To make it more complex: My Visual Studio 2010 Debugger is a 32-bit application , so I cannot debug when using "System.Data.SQLite-64bit", from the GAC !
As .NET developers, we need recommendations / know-how / best practices.
And the best place to collect such information that I know is this site ( /qaru.site / ... ).
Therefore, please share your ideas and known issues that may serve as best practices or recommendations to survive in the world of the 32/64 / anyCPU docking station.
I would prefer one problem / trick for the "answer" so it can be easily commented / updated / referenced. - Feel free to give a few "answers".
I also shared my knowledge with both the answer to this question.
k3b
source share