jface.dialogs.PopupDialog : Cyclic dependency in module dwtx.jface.dialogs.IDialogConstants

Frank Benoit keinfarbton at googlemail.com
Fri Jun 20 03:45:27 PDT 2008


yidabu schrieb:
> code bellow cause run time Exception:
> object.Exception: Cyclic dependency in module dwtx.jface.dialogs.IDialogConstants
> 
> tested with dwt-win svn, dwtx svn, dmd 1.028
> 
> Code:
> 
> import dwt.DWT;
> import dwt.layout.FillLayout;
> import dwt.widgets.Display;
> import dwt.widgets.Shell;
> import dwt.widgets.Listener;
> import dwt.widgets.Event;
> import dwt.widgets.Button;
> 
> import dwtx.jface.dialogs.PopupDialog;
> import dwt.dwthelper.utils;
> 
> 
> void handleSelection(Event e, Shell shell)
> {
>     auto dialog = new PopupDialog(shell, DWT.NONE, true, false,true,false,true,"test title", "test info");
>     dialog.open();
> }
> 
> void main() {
>     final Display display = new Display();
>     final Shell shell = new Shell(display);
>     shell.setLayout(new FillLayout());
>     Button button = new Button(shell, DWT.PUSH);
>     button.setText("&OK");
>     button.addListener(DWT.Selection, dgListener(&handleSelection, shell));
>     shell.pack();
>     shell.open();
>     while (!shell.isDisposed()) {
>         if (!display.readAndDispatch()) display.sleep();
>     }
>     display.dispose();
> }
> 
> 
> 
> 

Thanks for the report.
Is fixed now.


More information about the Digitalmars-d-dwt mailing list