Ticket #4 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

simplest JFace executable size is 14MB

Reported by: yidabu Assigned to: keinfarbton
Priority: major Milestone: milestone4
Component: component1 Version: 1.0
Keywords: jface Cc: yidabu@gmail.com

Description

the executable size is terrible, what's the problem?

tested with dwt-win svn, dmd 1.028, dwt-addons svn, Tango svn.

import  
    dwt.widgets.Display,
    dwt.widgets.Shell,
    dwt.DWT,
    dwt.widgets.Control,
    dwt.widgets.Composite,
    dwt.widgets.Label,
    dwtx.jface.window.ApplicationWindow;

public class MyWindow : ApplicationWindow
{    
    this()
    {
        super(null);
    }
    void run()
    {        
        setBlockOnOpen(true);
        open();
        Display.getCurrent.dispose;
    }
    
    protected Control createContents(Composite parent)
    {
        auto label = new Label(parent, DWT.CENTER);
        label.setText("hello");
        return label;
    }
    
}

void main(char[][] args)
{
    (new MyWindow).run;
        
} 

Change History

05/22/08 06:07:52 changed by yidabu

by set dsss oneatatime=yes, and build a static dwt.lib,dwtx.lib, the executable down from 14 MB to about 3 MB, this ticket should be closed?

05/22/08 07:06:44 changed by keinfarbton

  • status changed from new to closed.
  • resolution set to fixed.