ProgressMonitorDialog : Access Violation

yidabu yidabu.spam at gmail.com
Fri Jun 20 16:29:33 PDT 2008


On Fri, 20 Jun 2008 13:02:06 +0200
Frank Benoit <keinfarbton at googlemail.com> wrote:

> yidabu schrieb:
> > jface ProgressMonitorDialog cause runtime Access Violation,
> > ddbg captured:
> > 
> > Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc0000005) at dwtx.jface.dialog
> > s.ProgressMonitorDialog.ProgressMonitorDialog.configureShell.dwt.widgets.Shell.S
> > hell.__anonclass95.handleEvent.dwt.widgets.Event.Event.__anonclass96.run (0x0040
> > d890) thread(3412)
> > 
> > tested with dwt-win svn, dwtx svn, dmd 1.028

> 
> Thanks for the report yidabu.
> It is fixed now.
> In your example code, i noticed this:
> Thread.sleep(50); // should be 0.050

update to svn, still not work:
runtime exception:


Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc0000005) at dwtx.jface.dialog
s.ProgressMonitorDialog.ProgressMonitorDialog.setMessage (0x0040dc1a) thread(266
8)
->us
#0 void dwtx.jface.dialogs.ProgressMonitorDialog.ProgressMonitorDialog.setMessag
e(char[], bool, void*) () at DwtTest.d:42 from ProgressMonitorDialog
#1 0x0040d8a1 in void dwtx.jface.dialogs.ProgressMonitorDialog.ProgressMonitorDi
alog.configureShell(class dwt.widgets.Shell.Shell, void*) . void __anonclass94.h
andleEvent(class dwt.widgets.Event.Event, void*) . void __anonclass95.run(void*)
 () at DwtTest.d:42 from ProgressMonitorDialog
#2 0x004b6ca4 in bool dwt.widgets.Synchronizer.Synchronizer.runAsyncMessages(boo
l, void*) () at DwtTest.d:42 from Synchronizer
#3 0x004592c3 in bool dwt.widgets.Display.Display.runAsyncMessages(bool, void*)
() at DwtTest.d:42 from Display
#4 0x00414019 in void dwtx.jface.operation.ModalContext.ModalContext.ModalContex
tThread.block(void*) () at DwtTest.d:42 from ModalContext
#5 0x00414261 in void dwtx.jface.operation.ModalContext.ModalContext.run(class d
wtx.jface.operation.IRunnableWithProgress.IRunnableWithProgress, bool, class dwt
x.core.runtime.IProgressMonitor.IProgressMonitor, class dwt.widgets.Display.Disp
lay) () at DwtTest.d:42 from ModalContext
#6 0x0040daf2 in void dwtx.jface.dialogs.ProgressMonitorDialog.ProgressMonitorDi
alog.run(bool, bool, class dwtx.jface.operation.IRunnableWithProgress.IRunnableW
ithProgress, void*) () at DwtTest.d:42 from ProgressMonitorDialog
#7 0x0040406c in  DwtTest.handleSelection () at DwtTest.d:42
#8 0x0040429f in  dwt.widgets.Listener._DgListenerT! () at DwtTest.d:60 from Dwt
Test.obj
#9 0x004b725a in void dwt.widgets.EventTable.EventTable.sendEvent(class dwt.widg
ets.Event.Event, void*) () at DwtTest.d:60 from EventTable
#10 0x0047e8ad in void dwt.widgets.Widget.Widget.sendEvent(class dwt.widgets.Eve



-- 
yidabu <yidabu.spam at 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/




More information about the Digitalmars-d-dwt mailing list