ProgressMonitorDialog : Access Violation

Frank Benoit keinfarbton at googlemail.com
Sat Jun 21 02:34:14 PDT 2008


yidabu schrieb:
>>>>> 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:
>>> ...
>> strange.
>> I tested it on linux and windows.
>> are you sure you updated dwt-addons?
>> this was the fix: 
>> http://www.dsource.org/projects/dwt-addons/changeset/83%3A028aedd523ad
> 
> change :
> dialog.run(true, true, dgIRunnableWithProgress(&run));
> to:
> dialog.run(false, true, dgIRunnableWithProgress(&run));
> 
> Progress bar worked, and after monitor.done(), cause Exception:
> 
> Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc0000005) at dwtx.jface.dialog
> s.ProgressMonitorDialog.ProgressMonitorDialog.configureShell.dwt.widgets.Shell.S
> hell.__anonclass94.handleEvent.dwt.widgets.Event.Event.__anonclass95.run (0x0040
> d891) thread(2004)
> 
> seems it's another anonclass problem.
> 
> 

i had tested it with dmd 1.031 ... and indeed with dmd 1.028 it crashes.
Your first example code should work now.
With the
 > dialog.run(false, true, dgIRunnableWithProgress(&run));
there is still a problem :/


More information about the Digitalmars-d-dwt mailing list