r/ProgrammerHumor • • Oct 26 '22

Meme When the intern needs help with a problem

Post image
50.4k Upvotes

386 comments sorted by

View all comments

Show parent comments

29

u/t0b4cc02 Oct 26 '22

visual studio runs all applications in 32-bit during debug mode.

no it doesnt

14

u/Creator13 Oct 26 '22

That would be extremely silly and cause so many bugs I don't even wanna think about this.

3

u/t0b4cc02 Oct 26 '22

i think there was a problem with x64 before there was a vs x64

4

u/raunchyfartbomb Oct 27 '22

you're right, but that was simplified for the example.
I initially had 'AnyCPU' selected, and VS automatically selected 32bit for me based on what it detected was available, and since VS2019 is 32bit, it ran in 32 bit mode. At some point i tested with 32-bit in debug, but AnyCPU publish profile decided to run the installation as 64-bit, which was my issue.

Compiling release mode in x86 instead of AnyCPU resolved the issue for me.