Out of memory error
Most likely, your application is running in 32-bit mode facing various resource limitations of this platform.
Please try disabling the Prefer 32-bit
option in the Project Properties, or explicitly specify (or add) x64
solution platform in the Configuration Manager.