On 25-05-18 20:14, Russel Winder wrote:

Has anyone got an example of using a gtk.Dialog (not one of the subclasses). I have:

super("Preferences", parent, GtkDialogFlags.DESTROY_WITH_PARENT, cast(string[])[], []);

in the constructor of a subclass of gtk.Dialog. It compiles, but on execution in causes a

core.exception.RangeError@../../../../.dub/packages/gtk-d-3.8.2/gtk-d/generated/gtkd/gtk/Dialog.d(195): Range violation

and thence a -9 exit code.

The constructor assumes the last two parameters are never null, while
that should be allowed.