How to use large objects in C#

So you’ve got 64-bit Windows, lots of RAM, compiled your C# program as 64 bit application, and you still get the message that an object is too large? That’s because there’s a default 2GB limit to the size of objects. Luckily, there’s a way to disable this. You need to […]

How to call C++ DLLs from C#

Most of my code is in C#, but I occasionally encounter functionality that is only available in a C++ DLL. Luckily, it is possible to call C++ DLLs from C#, the main challenge being the difference in data types. It’s usually advisable to build a wrapper around the C++ functionality […]