Problem deploying RCP application for Windows - Widget disposed too early [message #686491] |
Wed, 22 June 2011 10:49 |
Lisa Messages: 3 Registered: June 2011 |
Junior Member |
|
|
Hi all,
I kept searching the web but didn't find a solution to my specific problem. I hope someone here can help me out:
I am developing an Eclipse RCP application under Linux Redhat 5.5. Recently I have upgraded from Eclipse 3.6.1 to 3.6.2 and get the following problem:
I deploy my application using the delta pack for Linux and Windows. On Linux the deployed application runs fine, whereas on Windows the application doesn't start up and I get an entry in the .log stating an SWTException "Graphic is disposed" and a java.lang.RuntimeException "Widget disposed too early". (I attached the corresponding .log file.)
I don't know if it actually has something to do with the upgrade of my developing environment (I also installed some plugins like Classycle, Checkstyle etc.) but before I was always able to deploy successfully for Linux and Windows.
Does anybody have a clue where I could find more information on the problem's cause in my system? Everything I found on this forum and other web resources didn't help in my case ...
Thanks in advance!
Cheers
Lisa
-
Attachment: .log
(Size: 19.08KB, Downloaded 206 times)
[Updated on: Wed, 22 June 2011 11:27] Report message to a moderator
|
|
|
|
|
|
|
Re: Problem deploying RCP application for Windows - Widget disposed too early [message #689344 is a reply to message #686491] |
Mon, 27 June 2011 13:36 |
Lisa Messages: 3 Registered: June 2011 |
Junior Member |
|
|
In case anyone's interested, I found out what causes the error:
In my Perspective class, I define a placeholder folder and add views that are implemented in a different plug-in:
public void createInitialLayout(IPageLayout layout) {
...
IFolderLayout controlFolder = layout.createFolder("placeholder.id", IPageLayout.RIGHT, 0.8f, IPageLayout.ID_EDITOR_AREA);
controlFolder.addView("view.id.1");
controlFolder.addView("view.id.2");
}
The Perspective class is in plug-in A whereas the added views are in another plug-in B. That in combination with a premature disposal of SWT graphics resources caused the problem ...
In retrospect, it somehow makes sense to get an error there, but what still puzzles me is that I don't have any problems at all on my Linux development environment.
Well, be it as it may - problem worked around
[Updated on: Mon, 27 June 2011 14:10] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04124 seconds