TreeEditor crash bug

Frank Benoit keinfarbton at googlemail.com
Mon Jun 9 10:08:58 PDT 2008


Simen Haugen schrieb:
> I just tried the same using Table and TableEditor and get a stacktrace then 
> too.
> 
> "Simen Haugen" <simen at norstat.no> wrote in message 
> news:g2jiq4$1ev0$1 at digitalmars.com...
>> Here's a small example that quits with a long stacktrace. I'm using dmd 
>> 1.030, tango rev. 3543 and dwt rev. 233 on WinXP SP2
>>
>>
>> import dwt.DWT;
>> import dwt.layout.FillLayout;
>> import dwt.widgets.Display;
>> import dwt.widgets.Shell;
>> import dwt.widgets.Tree;
>> import dwt.custom.TreeEditor;
>>
>> void main()
>> {
>> auto display = new Display;
>> auto shell = new Shell(display, DWT.NONE);
>> shell.setLayout(new FillLayout());
>> auto tree = new Tree(shell, DWT.NONE);
>> auto ed = new TreeEditor(tree); // Remove this line to avoid crash
>>
>> shell.open(); // Crashes here
>> while( !shell.isDisposed() )
>> {
>>  if( !display.readAndDispatch() )
>>   display.sleep();
>> }
>> }
>>
>>
> 
> 

DMD 1.030 produces binaries that crash if anonymous classes are used. 
TreeEditor makes use of anonymous classes.
Please, can you retry with DMD 1.028?
See also: http://www.dsource.org/projects/dwt/wiki/Requirements






More information about the Digitalmars-d-dwt mailing list