How to debug an executable in my IDE that requires Compatibility Mode to runOverride intranet compatibility mode IE8Why does IE9 switch to compatibility mode on my website?D3DXCompileShader Returns ERROR_MOD_NOT_FOUNDwin32 console program side-by-side configuration errorDirectX Device::CreateTexture2D() crashes when calling with all 3 paramsVisual C++ application won't run on windows 7Crash in _snprintf_s() in “ucrtbase.dll” with STATUS_ILLEGAL_INSTRUCTIONQuestions about “Binary Compatibility between Visual Studio 2015 and Visual Studio 2017”Is the official binary incompatibility between VS2017 and VS2015 app vs. dll accurate?
Is it safe to change the harddrive power feature so that it never turns off?
Why can my keyboard only digest 6 keypresses at a time?
Someone whose aspirations exceed abilities or means
Why am I Seeing A Weird "Notch" on the Data Line For Some Logical 1s?
Tabular with "display math" vertical size
Should I refuse being named as co-author of a bad quality paper?
How is the excise border managed in Ireland?
Single-key teletype?
How can I make 12 tone and atonal melodies sound interesting?
Code downloads a text file from a website, saves it to local disk, and then loads it into a list for further processing
Getting UPS Power from One Room to Another
Equivalent of "so much (as that)" in this context?
How do free-speech protections in the United States apply in public to corporate misrepresentations?
Is using 'echo' to display attacker-controlled data on the terminal dangerous?
Is it possible to fly backward if you have REALLY STRONG headwind?
How to safely destroy (a large quantity of) valid checks?
My boss want to get rid of me - what should I do?
Bb13b9 confusion
Non-aqueous eyes?
Why Does Mama Coco Look Old After Going to the Other World?
Insert external file and modify each line from script
Are polynomials with the same roots identical?
Proving that a Russian cryptographic standard is too structured
Is it possible for a vehicle to be manufactured without a catalytic converter?
How to debug an executable in my IDE that requires Compatibility Mode to run
Override intranet compatibility mode IE8Why does IE9 switch to compatibility mode on my website?D3DXCompileShader Returns ERROR_MOD_NOT_FOUNDwin32 console program side-by-side configuration errorDirectX Device::CreateTexture2D() crashes when calling with all 3 paramsVisual C++ application won't run on windows 7Crash in _snprintf_s() in “ucrtbase.dll” with STATUS_ILLEGAL_INSTRUCTIONQuestions about “Binary Compatibility between Visual Studio 2015 and Visual Studio 2017”Is the official binary incompatibility between VS2017 and VS2015 app vs. dll accurate?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
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)?
visual-c++ visual-studio-2017 directx compatibility-mode
add a comment |
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)?
visual-c++ visual-studio-2017 directx compatibility-mode
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?
– VTT
Mar 26 at 7: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 workaroundbypass it, necessarily. I don't anticipate code changes to address this.
– Brett Caswell
Mar 27 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 at 20:11
add a comment |
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)?
visual-c++ visual-studio-2017 directx compatibility-mode
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)?
visual-c++ visual-studio-2017 directx compatibility-mode
visual-c++ visual-studio-2017 directx compatibility-mode
edited Mar 24 at 19:28
Brett Caswell
asked Mar 24 at 19:16
Brett CaswellBrett Caswell
701723
701723
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?
– VTT
Mar 26 at 7: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 workaroundbypass it, necessarily. I don't anticipate code changes to address this.
– Brett Caswell
Mar 27 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 at 20:11
add a comment |
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?
– VTT
Mar 26 at 7: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 workaroundbypass it, necessarily. I don't anticipate code changes to address this.
– Brett Caswell
Mar 27 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 at 20:11
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?
– VTT
Mar 26 at 7:37
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?
– VTT
Mar 26 at 7: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 workaroundbypass it, necessarily. I don't anticipate code changes to address this.
– Brett Caswell
Mar 27 at 20:09
@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 workaroundbypass it, necessarily. I don't anticipate code changes to address this.
– Brett Caswell
Mar 27 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 at 20:11
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 at 20:11
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55327553%2fhow-to-debug-an-executable-in-my-ide-that-requires-compatibility-mode-to-run%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55327553%2fhow-to-debug-an-executable-in-my-ide-that-requires-compatibility-mode-to-run%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
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?
– VTT
Mar 26 at 7: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 workaroundbypass it, necessarily. I don't anticipate code changes to address this.
– Brett Caswell
Mar 27 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 at 20:11