Access violation reading location
When compiling with VS2019 getting a
"Exception thrown at 0x00007FF91BA42717 (vcruntime140d.dll) in Shellcode-Download_CreateThread_Execution.exe: 0xC0000005: Access violation reading location 0x0000000000000000."
Could you shed some light ?
Did you set in code generation, the runtime library to Multi-threaded (/MT)?

Yes, set to /MT - now getting a different error: Exception thrown: read access violation. str1 was nullptr.
I am sorry, I don't have an answer at the moment.
I Have Done Some Tests and after setting it to /MT , Exception thrown at 0x0000025A694A1000 in Shellcode-Download_CreateThread_Execution.exe: 0xC0000005: Access violation executing location 0x0000025A694A1000.