Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


optimized compilation


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-06-2008, 01:14 PM
Knows the basics
 
Join Date: Apr 2007
Location: Canari Islan
Posts: 70
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
Attached Files
File Type: zip test.zip (369.1 KB, 13 views)
Reply With Quote
  #2 (permalink)  
Old 08-06-2008, 04:26 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
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, 05:08 PM
Knows the basics
 
Join Date: Apr 2007
Location: Canari Islan
Posts: 70
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, 06:38 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
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, 07:17 PM
Knows the basics
 
Join Date: Apr 2007
Location: Canari Islan
Posts: 70
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error with Optimized Compilation and SQLite berndgoedecke Questions & Help Needed 1 09-07-2008 07:20 PM
Optimized compilation susu Questions & Help Needed 3 05-13-2008 07:23 AM
Optimized Compilation problem on the device bob Questions & Help Needed 4 03-12-2008 02:05 PM
6.01 Optimized compilation error dpriem Bug Reports 2 01-06-2008 04:42 PM
FMOD and Optimized Compilation @Work Bug Reports 8 12-28-2007 08:51 PM


All times are GMT. The time now is 02:48 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0