browser widget program crash whenever i submit form [message #467673] |
Fri, 03 February 2006 13:16 |
Eclipse User |
|
|
|
Originally posted by: ideawu.163.com
Hi, I'm using Linux debian 2.6.8-11-amd64-generic + eclipse3.1 + swt-3.1-gtk-linux-x86_64
My program crash whenever I try to submit html form, I've checked google.com, eclipse.org, ...
What's wrong?
// My codes here
import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;
import org.eclipse.swt.browser.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.graphics.*;
public class MyBrowser
{
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
shell.setText("Main Window");
shell.setLayout(new FillLayout());
Browser browser = new Browser(shell, SWT.NONE);
shell.open();
browser.setUrl("http://www.eclipse.org");
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
}
// The error message
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0x0000002a95903642, pid=7495, tid=182899717280
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# C [libc.so.6+0x7f642] memmove+0x82
#
# An error report file with more information is saved as hs_err_pid7495.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted
|
|
|
|
Powered by
FUDForum. Page generated in 0.02443 seconds