Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Exception No more callbacks - Display
SWT Exception No more callbacks - Display [message #1779702] Thu, 11 January 2018 12:25
Umut Kazan is currently offline Umut KazanFriend
Messages: 26
Registered: February 2017
Junior Member
Hello,

i have a class extends from Thread and the run method;

display = PlatformUI.createDisplay();
Shell shell = new Shell(display, SWT.CENTER | SWT.TITLE | SWT.PRIMARY_MODAL | SWT.ON_TOP);
...
..
..
..
..
..
..
while (!shell.isDisposed())
{
	if (!display.readAndDispatch())
	{

		String mes = logger.getMessage();

		if (mes != null)
		{
			// shell.setText(mes);
			processMessage = mes;
		}
		display.sleep();
	}
}
display.dispose();

because of the PlatformUI.createDisplay() every time this called, new Display created and register to Display class Displays list. After a while SWT exception occurs. How can i dispose this Display? Code doesn't reach the display.dispose()
Previous Topic:SWT Exception No more callbacks - Display
Next Topic:Update image when image-file changes
Goto Forum:
  


Current Time: Wed Sep 19 21:08:59 GMT 2018

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

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

Back to the top