Huge memory leak when WPF is compiled in x64, but none when compiled for “AnyCPU”

When I resize the main window, even if it's in a completely blank project – it will shoot up to almost 3GB of memory after just 10 seconds of continually re-sizing the window. When I switch back to "AnyCPU" there's no memory leak at all – it sits steady at about 30mb of memory while re-sizing the main window.

Wouldn't be a problem if I didn't need to include a C++/CLI assembly which can only be x86 or x64 and not "AnyCPU"

As it is, I prefer working in x64.

Anyone know what setting I didn't set that is causing this problem?

by HonorableJudgeHolden via /r/csharp

Leave a Reply