0

Background Info

In VS2017, I've defined a VC++ project with Platform Toolset "Visual Studio 2013 - Windows XP (v120_xp)"

My program has a dependency on DirectX SDK October 2004.

Soon after the entry into my program, I declare and utilize an instance of Win32::CD3DScreen;

This causes an Unhandled exception with msvcr120.dll.

Unhandled exception at 0x6C9B4799 (msvcr120.dll) in *****.exe: An invalid parameter was passed to a function that considers invalid parameters fatal.

If I run the output executable in compatibility mode (targeting WinXP SP3) it runs.

Question

How can I debug this executable in my IDE (VS2017)?

Brett Caswell
  • 1,486
  • 1
  • 13
  • 25
  • While the question is all about "how to debug" you never mention any problems with debugging. Do you difficulties with debugging that Unhandled exception? Like unable to check call stack or variable values or something? – user7860670 Mar 26 '19 at 07:37
  • @VTT I might do that for the comprehension of it, but I'm not trying to determine what the cause of the unhandled exception is. that is, the cause is running the executable outside of compatibility mode: i.e. I'm not trying to determine why it is required or how even how to workaround\bypass it, necessarily. I don't anticipate code changes to address this. – Brett Caswell Mar 27 '19 at 20:09
  • Actually, someone pointed out that I could just attach to the process after starting it in compatibility mode - which works fine. the only reason I haven't closed the answer is because there could potentially be a better answer: something that defines the mode in the scope project or in the launch operation, following a debug build or otherwise. – Brett Caswell Mar 27 '19 at 20:11

0 Answers0