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;








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)?










share|improve this question
























  • 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


















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)?










share|improve this question
























  • 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














0












0








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)?










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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


















  • 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













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
);



);













draft saved

draft discarded


















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















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해