Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » browser creation silently closes program
browser creation silently closes program [message #1807669] Wed, 05 June 2019 21:16 Go to next message
Keith Willenson is currently offline Keith WillensonFriend
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?
Re: browser creation silently closes program [message #1807707 is a reply to message #1807669] Thu, 06 June 2019 14:17 Go to previous messageGo to next message
Keith Willenson is currently offline Keith WillensonFriend
Messages: 21
Registered: July 2009
Junior Member
Installed
Version: 2019-03 (4.11.0)
Build id: 20190314-1200

fixed the problem
SOLVED:: browser creation silently closes program [message #1807708 is a reply to message #1807669] Thu, 06 June 2019 14:19 Go to previous messageGo to next message
Keith Willenson is currently offline Keith WillensonFriend
Messages: 21
Registered: July 2009
Junior Member
Installed
Version: 2019-03 (4.11.0)
Build id: 20190314-1200

fixed the problem
Re: SOLVED:: browser creation silently closes program [message #1807981 is a reply to message #1807708] Thu, 13 June 2019 15:16 Go to previous message
Keith Willenson is currently offline Keith WillensonFriend
Messages: 21
Registered: July 2009
Junior Member
The same problem occurred in 2019-03.

I added a new general project (from Git, https) and then the Java project starts and silently quits.
I uninstalled the general project. No change.
Rebooted. No change.
Reinstalled 2019-03 over the existing install. Now it works.

Next time I have to install the general project, I will take before and after snapshots.
Previous Topic:browser creation silently closes program
Next Topic:SWT crashes with no more handles
Goto Forum:
  


Current Time: Fri Apr 19 23:50:35 GMT 2024

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

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

Back to the top