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 problem)
browser creation silently closes program [message #1807670] Wed, 05 June 2019 21:18 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?
SOLVED: browser creation silently closes program [message #1807711 is a reply to message #1807670] Thu, 06 June 2019 14:22 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 #1807980 is a reply to message #1807711] Thu, 13 June 2019 15:10 Go to previous message
Keith Willenson is currently offline Keith WillensonFriend
Messages: 21
Registered: July 2009
Junior Member
I added a new general project in 2019-03 and the same situation occurred. The program starts but silently quits.

I removed the general project from Eclipse, no change.
rebooted computer, no change,
reinstalled Eclipse (over existing install), problem solved.

The next time I have to install this project, I will take before and after snapshots.
Previous Topic:Keyboard on focused Control hold by AWT under GTK
Next Topic:browser creation silently closes program
Goto Forum:
  


Current Time: Tue Dec 03 15:05:02 GMT 2024

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

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

Back to the top