browser creation silently closes program [message #1807670] |
Wed, 05 June 2019 21:18 |
Keith Willenson Messages: 21 Registered: July 2009 |
Junior Member |
|
|
I hava a program that uses a browser to display messages to the user. That way we cam make the messages fancy with colors, etc. This program has been running fine for years. Today, in Eclipse it suddenly would not start.
Eclispe SDK
Version: 2018-12 (4.10)
Build id: I20181206-0815
The program silently quits immediately after the Browser creation. No error messages or exceptions. Here is the code:
App.diagnose("createSideMenu B");
Composite info = new Composite(infoBorder, SWT.NONE);
GridLayout infoLayout = new GridLayout();
infoLayout.numColumns = 1;
info.setLayout(infoLayout);
GridData infoData = new GridData();
infoData.horizontalAlignment = GridData.FILL;
infoData.grabExcessHorizontalSpace = true;
info.setLayoutData(infoData);
App.diagnose("createSideMenu B4");
App.diagnose("createSideMenu B4 info " + info + " children of parent " + info.getParent().getChildren().length);
// Button junk = new Button(info, SWT.PUSH);
// App.diagnose("createSideMenu B4 made button");
Browser infoArea = new Browser(info, SWT.NONE);
App.diagnose("createSideMenu C")
- I never see the "createSideMenu C" message.
- If I uncomment the Button creation, that works, but it still quits after infoArea..
- If I create a StyledText instead of a Browser it also quits
- This output is immediately after a shutdown and reboot.
- One of the several SWT Browser examples works correctly in a separate project
Here is my output
Quote:App.java(5562) createSideMenu A
App.java(5566) createSideMenu A borderColor Color {10, 10, 10, 255}
App.java(5576) createSideMenu A infoBorder Composite {}
App.java(5578) createSideMenu B
App.java(5587) createSideMenu B4
App.java(5588) createSideMenu B4 info Composite {} children of parent 1
Any suggestions about where I could look to determine what is happening?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04190 seconds