Strange crash of Hosted Browser when adding ClickHandler to button...

11 views
Skip to first unread message

Kah0ona

unread,
Dec 4, 2009, 6:10:07 AM12/4/09
to Google Web Toolkit
Hi,

[System details: Mac OS X Snow Leopard 1.6.2, eclipse gallilleo]


I am having a strange problem in a little project of mine. I am
building (generating actually) a system that allows basic CRUD
operations on data, and I am using a simple MVC pattern. For every
data entity I have a MVC triple. So consider a Person who has Hobbies,
then there will be a 'Person MVC' and a 'Hobby MVC'

Just started this project, and this is what goes wrong:

The 2nd line in the body of this method causes the hosted mode to
crash:
[mypackage.client.PersonView]
/**
* Adds a create button to the PersonTableView
*/
private void addCreateButton() {
this.createButton = new Button("Create");
this.createButton.addClickHandler(controller.getCreateListener());
panel.add(this.createButton);

}

Now, I've got two of these methods, one in the PersonView and one in
the HobbyView. It simply calls the controller, to retrieve a listener
for the button. This works, if I out-comment one of the
addClickHandler lines (eg. in the PersonView xor in the HobbyView).
But if i enable both lines, the GWT hosted browser crashes with the
following errormessage in the console:

2009-12-04 11:51:00.270 java[13001:a07] [Java CocoaComponent
compatibility mode]: Enabled
2009-12-04 11:51:00.273 java[13001:a07] [Java CocoaComponent
compatibility mode]: Setting timeout for SWT to 0.100000
Invalid memory access of location 00000010 eip=9229277b

I also tried
this.createButton.addClickHandler(new ClickHandler(){ public void
onClick(ClickEvent event){...}));

Which gives the same error; only works if one of the two is
outcommented.

Any thoughts? Both views are part of a TabPanel btw, where the user
can do CRUD operations on Person and on a Hobby tab.

Should I file this as a bug? It is hard to come up with an accurate
description, but I hope I kind of succeeded...

Kah0ona

unread,
Dec 4, 2009, 6:13:29 AM12/4/09
to Google Web Toolkit
I forgot to mention: GWT 1.7.1
Reply all
Reply to author
Forward
0 new messages