[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Console view in RCP hangs for many messages

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