473,657 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding pause to execution.

Firstly I am not after a programatic solution (e.g. Console.ReadLin e() or a
Loop construct).

I am trying to find an option in the IDE to pause on exit. For instance with
the SharpDevelop IDE there is a checkbox to do this, but I cant find it in
VS2003 -but I will be surprised if it doesnt have one.

.....So where is it??

Thanks,

Mark.

P.S.
If you are wondering why the programatic construct is not ok, then it is
because I want to pause on exit with solutions in multi languages e.g. C#,
Perl, Python etc, and I dont want to spend time missing about trying to find
the construct (additionally I dont want to have to add code which is only
functional for testing purposes only).
Nov 16 '05 #1
6 6619
Mark,

Can you elaborate a little bit? What do you mean by pause, and what do
you mean by exit? Do you want the IDE to wait before it exits, or do you
want it to wait a little when the program it is debugging exits?

Or is it something else completely that you mean?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mark Broadbent" <no****@nospam. com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Firstly I am not after a programatic solution (e.g. Console.ReadLin e() or
a Loop construct).

I am trying to find an option in the IDE to pause on exit. For instance
with the SharpDevelop IDE there is a checkbox to do this, but I cant find
it in VS2003 -but I will be surprised if it doesnt have one.

....So where is it??

Thanks,

Mark.

P.S.
If you are wondering why the programatic construct is not ok, then it is
because I want to pause on exit with solutions in multi languages e.g. C#,
Perl, Python etc, and I dont want to spend time missing about trying to
find the construct (additionally I dont want to have to add code which is
only functional for testing purposes only).

Nov 16 '05 #2

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:ug******** ******@TK2MSFTN GP09.phx.gbl...
Mark,

Can you elaborate a little bit? What do you mean by pause, and
what do you mean by exit? Do you want the IDE to wait before it exits, or
do you want it to wait a little when the program it is debugging exits?


He means that the [console] program being started up by the IDE for
debugging purposes should pause (like "Press any key to continue...") before
the console window vanishes and any text output is lost.

-- Barry Kelly
Nov 16 '05 #3
Ahh, ok.

There is nothing like this in the framework. However, now, in VS.NET
2005, console applications have their input/output redirected to another
window in the IDE, which is not cleared when the console program exits.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Barry Kelly" <barry.j.kelly. at.gmail.com> wrote in message
news:uN******** ******@TK2MSFTN GP12.phx.gbl...

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote
in message news:ug******** ******@TK2MSFTN GP09.phx.gbl...
Mark,

Can you elaborate a little bit? What do you mean by pause, and
what do you mean by exit? Do you want the IDE to wait before it exits,
or do you want it to wait a little when the program it is debugging
exits?


He means that the [console] program being started up by the IDE for
debugging purposes should pause (like "Press any key to continue...")
before the console window vanishes and any text output is lost.

-- Barry Kelly

Nov 16 '05 #4
Start the app using Ctrl-F5 rather than F5, this will hold hte console window open. F5 attaches the debugger so it expects to hit a breakpoint (thats why it doesn't keep the console window open)

Regards

Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog

nntp://news.microsoft. com/microsoft.publi c.dotnet.langua ges.csharp/<#M************ **@TK2MSFTNGP09 .phx.gbl>

Firstly I am not after a programatic solution (e.g. Console.ReadLin e() or a
Loop construct).

I am trying to find an option in the IDE to pause on exit. For instance with
the SharpDevelop IDE there is a checkbox to do this, but I cant find it in
VS2003 -but I will be surprised if it doesnt have one.

....So where is it??

Nov 16 '05 #5
Thanks Richard that was exactly what I wanted, cheers.
"Richard Blewett [DevelopMentor]" <ri******@devel op.com> wrote in message
news:uD******** ******@TK2MSFTN GP10.phx.gbl...
Start the app using Ctrl-F5 rather than F5, this will hold hte console
window open. F5 attaches the debugger so it expects to hit a breakpoint
(thats why it doesn't keep the console window open)

Regards

Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog
nntp://news.microsoft. com/microsoft.publi c.dotnet.langua ges.csharp/<#M************ **@TK2MSFTNGP09 .phx.gbl>

Firstly I am not after a programatic solution (e.g. Console.ReadLin e() or
a
Loop construct).

I am trying to find an option in the IDE to pause on exit. For instance
with
the SharpDevelop IDE there is a checkbox to do this, but I cant find it in
VS2003 -but I will be surprised if it doesnt have one.

....So where is it??

Nov 16 '05 #6
Hi Nicholas, thx (see Richards reply for 2003)

Br,

Mark.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:e1******** ******@TK2MSFTN GP14.phx.gbl...
Ahh, ok.

There is nothing like this in the framework. However, now, in VS.NET
2005, console applications have their input/output redirected to another
window in the IDE, which is not cleared when the console program exits.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Barry Kelly" <barry.j.kelly. at.gmail.com> wrote in message
news:uN******** ******@TK2MSFTN GP12.phx.gbl...

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote
in message news:ug******** ******@TK2MSFTN GP09.phx.gbl...
Mark,

Can you elaborate a little bit? What do you mean by pause, and
what do you mean by exit? Do you want the IDE to wait before it exits,
or do you want it to wait a little when the program it is debugging
exits?


He means that the [console] program being started up by the IDE for
debugging purposes should pause (like "Press any key to continue...")
before the console window vanishes and any text output is lost.

-- Barry Kelly


Nov 16 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2915
by: jdph40 | last post by:
In Access 2002, I designed a simple database for our Safety department to enter results of a survey. There are 41 true/false statements. I have a main form called frmSurvey with a subform called sbfrmAnswers. I put an option group (optAnswers) on the subform with buttons for true or false. To speed entry of the results of the 350+ surveys we've collected, I put the following code in the AfterUpdate event of the option group: With...
19
86670
by: C# Learner | last post by:
What's a nice way to create a non-blocking pause in execution? Will I need to use some kind of timer for this, or is there a nicer way?
8
36442
by: Wim | last post by:
My GUI application starts a process (a console program) when the user hits Play. I would like to add an option to pause that process. The code I've added to detect if the user hit pause/unpause seems to work. But I have no clue how to pause/suspend the process. As far as I can see the Process class doesn't offer anything for this. So it's probably the thread the process is running on that should be suspended or put to sleep. But just...
2
3399
by: Dave | last post by:
I have a program that I need the program to temporarly stop and wait for a response from a piece of equipment. After a set period I want the program to continue. Like below --execute lline before pause --pause statement- pausefor set period --execute line after pause I tried using a timer but the timer messes up my sequence of execution. I used a do loop that kept checking the current time versus the starting time.
0
1401
by: Arik | last post by:
Hi, I would like to disable the 'Pause/Break' key in a console application. Normally, pressing the 'Pause' key halts the application's execution and may lead to undesirable processing gaps in my system. I tried to 'listen' for input key presses using Console.ReadKey(), but it turns out that it doesn't recognize the 'Pause' key (among other keys).
18
1790
by: Frank | last post by:
I'm using Sleep(100) and that works OK. However, it would be better if my app continued to receive and process keyboard messages. How can I pause the execution of code in one routine while letting the app respond to keyboard input? Thanks
0
1448
by: steveyjg | last post by:
I'm trying to call a function that will pause execution for 30 seconds and have a counter timer counting to 30 seconds during this pause. When the counter hits 30 execution of the program will continue. So far I have tried: Public Function timeDelay() timerCounter = 0 'global variable Timer1.Enabled = True End Function
1
2806
by: desktop | last post by:
Is there someway to pause the execution of a program? I have a large while loop and before it gets started I would like to pause the program so I can see the output before it gets overwritten by the loop.
2
1683
by: KiranJyothi | last post by:
Hi All, I am trying to add buttons and I am not able to see them while running. Please let me know where I am going wrong. Thanks in advance. KiranJyothi <CODE> //KiranJyothi
0
8403
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8316
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8737
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8509
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6174
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4327
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2735
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1967
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.