optimized compilation

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
 

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.
 

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.
 

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.
 
Top