digitalmars.D.dwt - anonclass problem with jface recent changes
- yidabu (18/18) Sep 11 2008 anonclass problem with jface recen changes,
- Frank Benoit (3/19) Sep 12 2008 I think i fixed that in dwtx.dwtxhelper.JThread currentThread(). But i
- yidabu (64/67) Sep 12 2008 I updated dwtx and tried, the result is:
- Frank Benoit (1/1) Sep 12 2008 I could reproduce it now, and the fix in JThread seems to solve it for m...
- yidabu (11/12) Sep 12 2008 seems not work, I do'nt unstandard that why some actions works fine, but...
- Frank Benoit (1/22) Sep 12 2008
- Frank Benoit (4/4) Sep 12 2008 perhaps an update problem?
- yidabu (11/16) Sep 12 2008 seems a lib build issue, exception with dwtx-debug.lib by dmd, I re comp...
- yidabu (25/26) Sep 12 2008 Event get exception with blank Action like this:
anonclass problem with jface recen changes, I updated dwtx to trunk, some programs works fine, but a program get exception when IMenuListener fired(mousce right click on the TableViewer to show the context menu): ddbg captured: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc0000005) at dwtx.jface.action.ActionContributionItem.ActionContributionItem.actionPropertyChange.dwtx.jface.util.PropertyChangeEvent PropertyChangeEvent dwtx\jface\action\ActionContributionItem.d:190 (0x008ef4b5) thread(3628) ->us ctionPropertyChange () at dwtx\jface\action\ActionContributionItem.d:190 s260.propertyChange dwtx.jface.action.ActionContributionItem.ActionCo tributionItem._ctor () at dwtx\jface\action\ActionContributionItem.d:177 .firePropertyChange () at dwtx\jface\action\AbstractAction.d:54 .firePropertyChange () at dwtx\jface\action\AbstractAction.d:80 dwtx\jface\action\Action.d:605 -- yidabu <yidabu.spam gmail.com> http://www.dsource.org/projects/dwin D 语言-中文(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/
Sep 11 2008
yidabu schrieb:anonclass problem with jface recen changes, I updated dwtx to trunk, some programs works fine, but a program get exception when IMenuListener fired(mousce right click on the TableViewer to show the context menu): ddbg captured: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc0000005) at dwtx.jface.action.ActionContributionItem.ActionContributionItem.actionPropertyChange.dwtx.jface.util.PropertyChangeEvent PropertyChangeEvent dwtx\jface\action\ActionContributionItem.d:190 (0x008ef4b5) thread(3628) ->us ctionPropertyChange () at dwtx\jface\action\ActionContributionItem.d:190 s260.propertyChange dwtx.jface.action.ActionContributionItem.ActionCo tributionItem._ctor () at dwtx\jface\action\ActionContributionItem.d:177 .firePropertyChange () at dwtx\jface\action\AbstractAction.d:54 .firePropertyChange () at dwtx\jface\action\AbstractAction.d:80 dwtx\jface\action\Action.d:605I think i fixed that in dwtx.dwtxhelper.JThread currentThread(). But i can't verify this right now. Can you please try again?
Sep 12 2008
Frank Benoit Wrote:I think i fixed that in dwtx.dwtxhelper.JThread currentThread(). But i can't verify this right now. Can you please try again?I updated dwtx and tried, the result is: here is my code, some actions get exception when set action.setEnabled(false); (works fine with true) class MyMenuListener : IMenuListener { mixin Singleton_simple; static void menuAboutToShow_() { actionA.setEnabled(true); // fine actionA.setEnabled(false); // fine actionB.setEnabled(true); // fine actionB.setEnabled(false); // actions cause exception when set to false } void menuAboutToShow(IMenuManager manager) { menuAboutToShow_(); } } Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc0000005) at dwtx.jface.action.ActionContributionItem.ActionContributionItem.actionPropertyChange.dwtx.jface.util.PropertyChangeEvent PropertyChangeEvent dwtx\jface\action\ActionContributionItem.d:190 (0x008ef2c9) thread(2784) ->us ctionPropertyChange () at dwtx\jface\action\ActionContributionItem.d:190 s261.propertyChange dwtx.jface.action.ActionContributionItem.ActionCo tributionItem._ctor () at dwtx\jface\action\ActionContributionItem.d:177 .firePropertyChange () at dwtx\jface\action\AbstractAction.d:54 .firePropertyChange () at dwtx\jface\action\AbstractAction.d:80 dwtx\jface\action\Action.d:605 at dwtx\jface\action\MenuManager.d:353 () at dwtx\jface\action\MenuManager.d:481 at dwtx\jface\action\MenuManager.d:503 dwt\widgets\TypedListener.d:279 dwt\widgets\EventTable.d:91 dwt\widgets\Widget.d:1037 dwt\widgets\Widget.d:1059 dwt\widgets\Widget.d:1041 dwt.widgets.Control.Control.WM_INITMENUPOPUP () at dwt\widgets\Control.d:4164 dwt\widgets\Control.d:3866 dwt\widgets\Canvas.d:357 dwt\widgets\Decorations.d:1599 dwt\widgets\Shell.d:1998 dwt\widgets\Display.d:4651 hwnd = 0x00290438) at dwt\widgets\Display.d:4601 dwt\widgets\Menu.d:266 dwt\widgets\Display.d:3956 dwt\widgets\Display.d:3521 dwtx\jface\window\Window.d:849 dwtx\jface\window\Window.d:828 Website_Submission_Shareware.d:76 [0] = "Website_Submission_Shareware" }) at Website_Submission_Shareware.d:33 () from dmain2 () from dmain2 ->q
Sep 12 2008
I could reproduce it now, and the fix in JThread seems to solve it for me.
Sep 12 2008
On Fri, 12 Sep 2008 11:27:38 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:I could reproduce it now, and the fix in JThread seems to solve it for me.seems not work, I do'nt unstandard that why some actions works fine, but some actions faled when setEnabled(false); -- yidabu <yidabu.spam gmail.com> http://www.dsource.org/projects/dwin D 语言-中文(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/
Sep 12 2008
yidabu Wrote:On Fri, 12 Sep 2008 11:27:38 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:I could reproduce it now, and the fix in JThread seems to solve it for me.seems not work, I do'nt unstandard that why some actions works fine, but some actions faled when setEnabled(false); -- yidabu <yidabu.spam gmail.com> http://www.dsource.org/projects/dwin D 语言-中文(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/
Sep 12 2008
perhaps an update problem? recompiled dwtx? dsss -full ? If not, can you please try the checks i listed in my previous posting?
Sep 12 2008
On Fri, 12 Sep 2008 10:22:28 -0400 Frank Benoit <keinfarbton googlemail.com> wrote:perhaps an update problem? recompiled dwtx? dsss -full ? If not, can you please try the checks i listed in my previous posting?seems a lib build issue, exception with dwtx-debug.lib by dmd, I re compile dwtx.lib by dsss, it works now, buy I don't know why exception with dwtx-debug.lib by dmd 1.033. -- yidabu <yidabu.spam gmail.com> http://www.dsource.org/projects/dwin D 语言-中文(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/
Sep 12 2008
On Fri, 12 Sep 2008 11:27:38 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:I could reproduce it now, and the fix in JThread seems to solve it for me.Event get exception with blank Action like this: public class PageAction : Action { public this() { super("&Get Page Ctrl+G", ImageDescriptor.createFromFile(getImportData!("page16.png"))); setToolTipText("get Page" ); } public void run() { /* ...... */ } } -- yidabu <yidabu.spam gmail.com> http://www.dsource.org/projects/dwin D 语言-中文(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/
Sep 12 2008