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 #1779701] Thu, 11 January 2018 12:20
Umut Kazan is currently offline Umut KazanFriend
Messages: 26
Registered: February 2017
Junior Member
Hello,

i have a class extends from Thread and here is 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 is called, new Display created and registered to Display class' "Displays" list. After a while SWT exception occurs. How can i dispose this Display? Code doesn't reach the display.dispose()

[Updated on: Mon, 15 January 2018 06:13]

Report message to a moderator

Previous Topic:How to call OLE interface with LPWSTR
Next Topic:SWT Exception No more callbacks - Display
Goto Forum:
  


Current Time: Wed Sep 19 13:29:49 GMT 2018

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

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

Back to the top