Console view in RCP hangs for many messages [message #485664] |
Mon, 14 September 2009 08:07  |
Eclipse User |
|
|
|
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 07:01  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05890 seconds