Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Console view in RCP hangs for many messages
Console view in RCP hangs for many messages [message #485664] Mon, 14 September 2009 12:07 Go to next message
sneha is currently offline snehaFriend
Messages: 25
Registered: July 2009
Junior Member
Hi,

I am developing an RCP application. I am redirecting the standard
console output to Console view in my RCP using PrintStream.
I am facing following problem while printing statements to console view:

Problem: When the code prints large number of messages to the console,
the RCP application hangs up.

Eg: a for loop like this:
for(int i = 0; i < 10000; i++)
{
System.out.println("Sample message");
}

On executing this loop in one of my plug-ins, the application hangs up.
After checking on forums, I tried invoking Printstream.flush method
after printing output to Console view. However this does not solve the
problem.
I have also tried enabling auto-flush of PrintStream through its
constructor. This too does not resolve the problem.

Could you please let me know if this problem can be solved?

Any suggestions/pointers can be of great help.

Thanks,
Sneha
Re: Console view in RCP hangs for many messages [message #485865 is a reply to message #485664] Tue, 15 September 2009 11:01 Go to previous message
sneha is currently offline snehaFriend
Messages: 25
Registered: July 2009
Junior Member
Hi,

Please let me know if anyone has faced this problem.

Any suggestions/help could be of great help.

Thanks,
Sneha

sneha wrote:
> Hi,
>
> I am developing an RCP application. I am redirecting the standard
> console output to Console view in my RCP using PrintStream.
> I am facing following problem while printing statements to console view:
>
> Problem: When the code prints large number of messages to the console,
> the RCP application hangs up.
>
> Eg: a for loop like this:
> for(int i = 0; i < 10000; i++)
> {
> System.out.println("Sample message");
> }
>
> On executing this loop in one of my plug-ins, the application hangs up.
> After checking on forums, I tried invoking Printstream.flush method
> after printing output to Console view. However this does not solve the
> problem.
> I have also tried enabling auto-flush of PrintStream through its
> constructor. This too does not resolve the problem.
>
> Could you please let me know if this problem can be solved?
>
> Any suggestions/pointers can be of great help.
>
> Thanks,
> Sneha
Previous Topic:View Maximize Event
Next Topic:tooltips for the generated editor
Goto Forum:
  


Current Time: Fri Apr 19 17:02:53 GMT 2024

Powered by FUDForum. Page generated in 0.01716 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top