Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

optimized compilation

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-06-2008, 12:14 PM
Senior Member
 
Join Date: Apr 2007
Location: Canari Islan
Posts: 103
Awards Showcase
Beta Tester 
Total Awards: 1
Default optimized compilation

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 , too long,

Can anything can be done to load faster?

A greeting and thank you
Reply With Quote
  #2 (permalink)  
Old 08-06-2008, 03:26 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

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.
Reply With Quote
  #3 (permalink)  
Old 08-06-2008, 04:08 PM
Senior Member
 
Join Date: Apr 2007
Location: Canari Islan
Posts: 103
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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.
Reply With Quote
  #4 (permalink)  
Old 08-06-2008, 05:38 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

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.
Reply With Quote
  #5 (permalink)  
Old 08-06-2008, 06:17 PM
Senior Member
 
Join Date: Apr 2007
Location: Canari Islan
Posts: 103
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thank Erel


I will try formlimb.minimizebox
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Optimized compilation susu Questions (Windows Mobile) 10 01-15-2009 09:07 PM
Error with Optimized Compilation and SQLite berndgoedecke Questions (Windows Mobile) 1 09-07-2008 06:20 PM
Optimized Compilation problem on the device bob Questions (Windows Mobile) 4 03-12-2008 01:05 PM
6.01 Optimized compilation error dpriem Bug Reports 2 01-06-2008 03:42 PM
FMOD and Optimized Compilation @Work Bug Reports 8 12-28-2007 07:51 PM


All times are GMT. The time now is 10:13 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0