Visual studio program window delays when launched
Pretty new to programming here so forgive me if I'm doing something stupid. When I launch my simple beginner programs on visual studio, its a blank screen for about 5 seconds when it is launched. on paper that doesn't seem like a big deal, but these are "hello world" type programs and when i tried learning a few months ago i didn't encounter this problem. I want to know how to fix this, as I am afraid that it will take longer with the large projects that i eventually hope to get into.
EDIT: Ok, I played around with the subsystem and the problem has seemed to go away. I don't exactly know what I did, but the program I was referring to doesn't have the problem anymore
c++ visual-studio
|
show 5 more comments
Pretty new to programming here so forgive me if I'm doing something stupid. When I launch my simple beginner programs on visual studio, its a blank screen for about 5 seconds when it is launched. on paper that doesn't seem like a big deal, but these are "hello world" type programs and when i tried learning a few months ago i didn't encounter this problem. I want to know how to fix this, as I am afraid that it will take longer with the large projects that i eventually hope to get into.
EDIT: Ok, I played around with the subsystem and the problem has seemed to go away. I don't exactly know what I did, but the program I was referring to doesn't have the problem anymore
c++ visual-studio
When you start a program, you can see in the output window, that a lot of Win32 DLLs are loaded. In Debug mode, this may take a considerable time. (Though, 5 seconds sounds long.) Did you try to start your application directly fromcmd
or from Explorer? Does this need so long as well? How about Release build? I'm not sure what else could play a role, e.g. drive nearly ful, anti-virus software (I had some bad experiences in the past), etc. Can you post some minimal code for which you observe this phenomenom?
– Scheff
Nov 21 '18 at 6:33
@Scheff When i say new I mean like this is my second day. I am unaware to what Win32 DLLs or cmd is. I've used visual studio on my computer before and haven't had this problem, so I don't think that a couple of games that I downloaded would cause this. Also I don't know how to share code because i created my stackoverflow account for this problem because I'm a noob
– Jonah Flamm
Nov 21 '18 at 6:46
Sorry. You mentioned VisualStudio. So, I assume you develop on Windows. The Win32 API is a set of DLLs shipped with the system. It is needed to use any feature of the operating system. (Even if you use C++ standard libraries only and nothing else these are probably depending somehow on Win32 API functions (surely in the case of input/output).)
– Scheff
Nov 21 '18 at 6:55
Withcmd
, I meantcmd.exe
. If you make a Console application, it is run with a Console window. In opposition to this, you can startcmd.exe
(e.g. by pressing [Win][R], typingcmd
, and clicking [OK] button) manually which opens a Console window with command interpreter. Then you can start your console application from command prompt (probably with ful absolute path of executable). If curious about this, please, research in Web. There should be plenty of explanations about this.
– Scheff
Nov 21 '18 at 6:59
2
You need to go shopping for a better anti-malware product. Most of the flashy stuff is not suitable for use on a programmer's machine that makes executable files appear from seemingly nowhere. The one included with your OS is plenty good enough.
– Hans Passant
Nov 21 '18 at 9:40
|
show 5 more comments
Pretty new to programming here so forgive me if I'm doing something stupid. When I launch my simple beginner programs on visual studio, its a blank screen for about 5 seconds when it is launched. on paper that doesn't seem like a big deal, but these are "hello world" type programs and when i tried learning a few months ago i didn't encounter this problem. I want to know how to fix this, as I am afraid that it will take longer with the large projects that i eventually hope to get into.
EDIT: Ok, I played around with the subsystem and the problem has seemed to go away. I don't exactly know what I did, but the program I was referring to doesn't have the problem anymore
c++ visual-studio
Pretty new to programming here so forgive me if I'm doing something stupid. When I launch my simple beginner programs on visual studio, its a blank screen for about 5 seconds when it is launched. on paper that doesn't seem like a big deal, but these are "hello world" type programs and when i tried learning a few months ago i didn't encounter this problem. I want to know how to fix this, as I am afraid that it will take longer with the large projects that i eventually hope to get into.
EDIT: Ok, I played around with the subsystem and the problem has seemed to go away. I don't exactly know what I did, but the program I was referring to doesn't have the problem anymore
c++ visual-studio
c++ visual-studio
edited Nov 21 '18 at 18:50
Jonah Flamm
asked Nov 21 '18 at 6:24


Jonah FlammJonah Flamm
13
13
When you start a program, you can see in the output window, that a lot of Win32 DLLs are loaded. In Debug mode, this may take a considerable time. (Though, 5 seconds sounds long.) Did you try to start your application directly fromcmd
or from Explorer? Does this need so long as well? How about Release build? I'm not sure what else could play a role, e.g. drive nearly ful, anti-virus software (I had some bad experiences in the past), etc. Can you post some minimal code for which you observe this phenomenom?
– Scheff
Nov 21 '18 at 6:33
@Scheff When i say new I mean like this is my second day. I am unaware to what Win32 DLLs or cmd is. I've used visual studio on my computer before and haven't had this problem, so I don't think that a couple of games that I downloaded would cause this. Also I don't know how to share code because i created my stackoverflow account for this problem because I'm a noob
– Jonah Flamm
Nov 21 '18 at 6:46
Sorry. You mentioned VisualStudio. So, I assume you develop on Windows. The Win32 API is a set of DLLs shipped with the system. It is needed to use any feature of the operating system. (Even if you use C++ standard libraries only and nothing else these are probably depending somehow on Win32 API functions (surely in the case of input/output).)
– Scheff
Nov 21 '18 at 6:55
Withcmd
, I meantcmd.exe
. If you make a Console application, it is run with a Console window. In opposition to this, you can startcmd.exe
(e.g. by pressing [Win][R], typingcmd
, and clicking [OK] button) manually which opens a Console window with command interpreter. Then you can start your console application from command prompt (probably with ful absolute path of executable). If curious about this, please, research in Web. There should be plenty of explanations about this.
– Scheff
Nov 21 '18 at 6:59
2
You need to go shopping for a better anti-malware product. Most of the flashy stuff is not suitable for use on a programmer's machine that makes executable files appear from seemingly nowhere. The one included with your OS is plenty good enough.
– Hans Passant
Nov 21 '18 at 9:40
|
show 5 more comments
When you start a program, you can see in the output window, that a lot of Win32 DLLs are loaded. In Debug mode, this may take a considerable time. (Though, 5 seconds sounds long.) Did you try to start your application directly fromcmd
or from Explorer? Does this need so long as well? How about Release build? I'm not sure what else could play a role, e.g. drive nearly ful, anti-virus software (I had some bad experiences in the past), etc. Can you post some minimal code for which you observe this phenomenom?
– Scheff
Nov 21 '18 at 6:33
@Scheff When i say new I mean like this is my second day. I am unaware to what Win32 DLLs or cmd is. I've used visual studio on my computer before and haven't had this problem, so I don't think that a couple of games that I downloaded would cause this. Also I don't know how to share code because i created my stackoverflow account for this problem because I'm a noob
– Jonah Flamm
Nov 21 '18 at 6:46
Sorry. You mentioned VisualStudio. So, I assume you develop on Windows. The Win32 API is a set of DLLs shipped with the system. It is needed to use any feature of the operating system. (Even if you use C++ standard libraries only and nothing else these are probably depending somehow on Win32 API functions (surely in the case of input/output).)
– Scheff
Nov 21 '18 at 6:55
Withcmd
, I meantcmd.exe
. If you make a Console application, it is run with a Console window. In opposition to this, you can startcmd.exe
(e.g. by pressing [Win][R], typingcmd
, and clicking [OK] button) manually which opens a Console window with command interpreter. Then you can start your console application from command prompt (probably with ful absolute path of executable). If curious about this, please, research in Web. There should be plenty of explanations about this.
– Scheff
Nov 21 '18 at 6:59
2
You need to go shopping for a better anti-malware product. Most of the flashy stuff is not suitable for use on a programmer's machine that makes executable files appear from seemingly nowhere. The one included with your OS is plenty good enough.
– Hans Passant
Nov 21 '18 at 9:40
When you start a program, you can see in the output window, that a lot of Win32 DLLs are loaded. In Debug mode, this may take a considerable time. (Though, 5 seconds sounds long.) Did you try to start your application directly from
cmd
or from Explorer? Does this need so long as well? How about Release build? I'm not sure what else could play a role, e.g. drive nearly ful, anti-virus software (I had some bad experiences in the past), etc. Can you post some minimal code for which you observe this phenomenom?– Scheff
Nov 21 '18 at 6:33
When you start a program, you can see in the output window, that a lot of Win32 DLLs are loaded. In Debug mode, this may take a considerable time. (Though, 5 seconds sounds long.) Did you try to start your application directly from
cmd
or from Explorer? Does this need so long as well? How about Release build? I'm not sure what else could play a role, e.g. drive nearly ful, anti-virus software (I had some bad experiences in the past), etc. Can you post some minimal code for which you observe this phenomenom?– Scheff
Nov 21 '18 at 6:33
@Scheff When i say new I mean like this is my second day. I am unaware to what Win32 DLLs or cmd is. I've used visual studio on my computer before and haven't had this problem, so I don't think that a couple of games that I downloaded would cause this. Also I don't know how to share code because i created my stackoverflow account for this problem because I'm a noob
– Jonah Flamm
Nov 21 '18 at 6:46
@Scheff When i say new I mean like this is my second day. I am unaware to what Win32 DLLs or cmd is. I've used visual studio on my computer before and haven't had this problem, so I don't think that a couple of games that I downloaded would cause this. Also I don't know how to share code because i created my stackoverflow account for this problem because I'm a noob
– Jonah Flamm
Nov 21 '18 at 6:46
Sorry. You mentioned VisualStudio. So, I assume you develop on Windows. The Win32 API is a set of DLLs shipped with the system. It is needed to use any feature of the operating system. (Even if you use C++ standard libraries only and nothing else these are probably depending somehow on Win32 API functions (surely in the case of input/output).)
– Scheff
Nov 21 '18 at 6:55
Sorry. You mentioned VisualStudio. So, I assume you develop on Windows. The Win32 API is a set of DLLs shipped with the system. It is needed to use any feature of the operating system. (Even if you use C++ standard libraries only and nothing else these are probably depending somehow on Win32 API functions (surely in the case of input/output).)
– Scheff
Nov 21 '18 at 6:55
With
cmd
, I meant cmd.exe
. If you make a Console application, it is run with a Console window. In opposition to this, you can start cmd.exe
(e.g. by pressing [Win][R], typing cmd
, and clicking [OK] button) manually which opens a Console window with command interpreter. Then you can start your console application from command prompt (probably with ful absolute path of executable). If curious about this, please, research in Web. There should be plenty of explanations about this.– Scheff
Nov 21 '18 at 6:59
With
cmd
, I meant cmd.exe
. If you make a Console application, it is run with a Console window. In opposition to this, you can start cmd.exe
(e.g. by pressing [Win][R], typing cmd
, and clicking [OK] button) manually which opens a Console window with command interpreter. Then you can start your console application from command prompt (probably with ful absolute path of executable). If curious about this, please, research in Web. There should be plenty of explanations about this.– Scheff
Nov 21 '18 at 6:59
2
2
You need to go shopping for a better anti-malware product. Most of the flashy stuff is not suitable for use on a programmer's machine that makes executable files appear from seemingly nowhere. The one included with your OS is plenty good enough.
– Hans Passant
Nov 21 '18 at 9:40
You need to go shopping for a better anti-malware product. Most of the flashy stuff is not suitable for use on a programmer's machine that makes executable files appear from seemingly nowhere. The one included with your OS is plenty good enough.
– Hans Passant
Nov 21 '18 at 9:40
|
show 5 more comments
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%2f53406326%2fvisual-studio-program-window-delays-when-launched%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%2f53406326%2fvisual-studio-program-window-delays-when-launched%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
When you start a program, you can see in the output window, that a lot of Win32 DLLs are loaded. In Debug mode, this may take a considerable time. (Though, 5 seconds sounds long.) Did you try to start your application directly from
cmd
or from Explorer? Does this need so long as well? How about Release build? I'm not sure what else could play a role, e.g. drive nearly ful, anti-virus software (I had some bad experiences in the past), etc. Can you post some minimal code for which you observe this phenomenom?– Scheff
Nov 21 '18 at 6:33
@Scheff When i say new I mean like this is my second day. I am unaware to what Win32 DLLs or cmd is. I've used visual studio on my computer before and haven't had this problem, so I don't think that a couple of games that I downloaded would cause this. Also I don't know how to share code because i created my stackoverflow account for this problem because I'm a noob
– Jonah Flamm
Nov 21 '18 at 6:46
Sorry. You mentioned VisualStudio. So, I assume you develop on Windows. The Win32 API is a set of DLLs shipped with the system. It is needed to use any feature of the operating system. (Even if you use C++ standard libraries only and nothing else these are probably depending somehow on Win32 API functions (surely in the case of input/output).)
– Scheff
Nov 21 '18 at 6:55
With
cmd
, I meantcmd.exe
. If you make a Console application, it is run with a Console window. In opposition to this, you can startcmd.exe
(e.g. by pressing [Win][R], typingcmd
, and clicking [OK] button) manually which opens a Console window with command interpreter. Then you can start your console application from command prompt (probably with ful absolute path of executable). If curious about this, please, research in Web. There should be plenty of explanations about this.– Scheff
Nov 21 '18 at 6:59
2
You need to go shopping for a better anti-malware product. Most of the flashy stuff is not suitable for use on a programmer's machine that makes executable files appear from seemingly nowhere. The one included with your OS is plenty good enough.
– Hans Passant
Nov 21 '18 at 9:40