EmEditor (text editor) Forum Index
   Questions and Answers about EmEditor Core
     stop infinite loop
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
green
Posted on: 9/4/2008 10:11 pm
Just popping in
Joined: 9/4/2008
From:
Posts: 3
stop infinite loop
hi all,

is there a way to stop an infinite loop when using emeditor to compile java?

thx

Yutaka
Posted on: 9/5/2008 9:51 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2401
Re: stop infinite loop
Quote:

green wrote:
hi all,

is there a way to stop an infinite loop when using emeditor to compile java?

thx



What exactly do you mean by infinite loop?


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

green
Posted on: 9/6/2008 12:42 am
Just popping in
Joined: 9/4/2008
From:
Posts: 3
Re: stop infinite loop
after compile java, when execute, i want to stop the infinite loop, what can i do?

e.g.

class Lo
{
public static void main(String[] args)
{
for(int i = 1; i > 0; i++)
{
System.out.println("hi");
}
}
}

in this case, the loop will print hi nonstop since the condition always fulfill

when execute with command prompt, i can stop it with ctrl_c

but when execute with emeditor, what can i do to stop it?
it doesn't mean only infinite loop, but how to stop java program during execution with emeditor ...

thx.
Yutaka
Posted on: 9/6/2008 8:20 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2401
Re: stop infinite loop
Quote:

green wrote:
after compile java, when execute, i want to stop the infinite loop, what can i do?

e.g.

class Lo
{
public static void main(String[] args)
{
for(int i = 1; i > 0; i++)
{
System.out.println("hi");
}
}
}

in this case, the loop will print hi nonstop since the condition always fulfill

when execute with command prompt, i can stop it with ctrl_c

but when execute with emeditor, what can i do to stop it?
it doesn't mean only infinite loop, but how to stop java program during execution with emeditor ...

thx.


Currently, you will need to end the process from Windows Task Manager. I will research whether EmEditor can send the signal equivalent to Ctrl+C. Thank you!


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

green
Posted on: 9/7/2008 6:58 am
Just popping in
Joined: 9/4/2008
From:
Posts: 3
Re: stop infinite loop
Dear Yutaka:

thank you for your reply.

I have seen solution by other softwares:

One is scite for windows
https://sourceforge.net/project/showfiles.php?group_id=2439&package_id=5662&release_id=584805

tools > stop executing


Another is ultraedit. When executing java, the command prompt will be activated so program can be stopped with ctrl_c

I am pretty sure you'll come up with a brilliant solution.

regards,
green
Yutaka
Posted on: 9/9/2008 6:25 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2401
Re: stop infinite loop
Quote:

green wrote:
Dear Yutaka:

thank you for your reply.

I have seen solution by other softwares:

One is scite for windows
https://sourceforge.net/project/showfiles.php?group_id=2439&package_id=5662&release_id=584805

tools > stop executing


Another is ultraedit. When executing java, the command prompt will be activated so program can be stopped with ctrl_c

I am pretty sure you'll come up with a brilliant solution.

regards,
green


Version 7.5 Alpha 10 allows you to terminate the tool job. If you reset keyboard properties, the default shortcut key is CTRL+BREAK.


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文