optimized compilation

Discussion in 'Questions (Windows Mobile)' started by manu, Aug 6, 2008.

  1. manu

    manu Active Member Licensed User

    Hello

    Is it normal for this application that included 50 sec afternoon here is to open in a PDA?

    He removed all the code to test load times and takes 50 sec :sign0148:, too long,

    Can anything can be done to load faster?

    A greeting and thank you
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Which device are you using? I've measured 15 seconds (which is pretty slow) on a WM2003 device.
    During startup all controls are created.
    This project includes about 600 controls, including many Table controls which are "heavy" controls.
    You should consider changing the close button into a minimize button to save the loading time of next launches.
     
  3. manu

    manu Active Member Licensed User

    The device is a HTC P3300.

    The controls are necessary, I will try elimini some, to see if so reduces the load time.

    The completed application are over 5000 lines of code, but the problem is to charge the main screen, once charged that the application works well movement between screens.



    Do you think if implemented before each screen controls are created when accessing the screen for the first time?

    How to minimize creates a button on the device?

    thanks Erel.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Yes, creating controls at runtime will decrease the load time (however running time will be slower).
    If you are using similar layouts in a couple of forms, you can put all these controls on a panel and then use FormLib.ChangeParent to move the panel from one form to another.

    You can change the close button to minimize button with FormLib.MinimizeBox.
     
  5. manu

    manu Active Member Licensed User

    Thank Erel


    I will try formlimb.minimizebox
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice