No, fair point, I think that was my frustration coming out! I double checked the toolsets and ensured those matched OK.
I will double check the compiler flags etc. I did try and compare them yesterday but I have probably missed something and this is leading to the issue. Thanks for the example, I will check that out.
I tried this multiple times, and built with the debug info to allow me to step through and all times the same issue existed. I’ll have a look at the project settings again and hopefully I have just missed something staring me in the face.
Thanks for your suggestions, appreciate you taking the time to reply. I put in a quick fix by updating the call to take char* so that I could check it was working otherwise, which it was thankfully.