StrataFrame Forum

Speed up application startup

http://forum.strataframe.net/Topic14868.aspx

By Marcel Heitlager - 3/13/2008

Is there a recommended way to do that?  I'm using both Strataframe and VFP through UDP.  It is a little slow at startup especially on slow machines (duh).

But how would you recommend starting up app and login screen at same time? If login fails, just close entire app.  But if succeeds everythings allready there (or almost).

Thanks,

Marcel

P.S. continue to love working with your framework especially new version and now also the security editor and ddt. Saves tons of time.Smile

By Trent L. Taylor - 3/13/2008

This question is something that we tackle during our training class...this is a very deep question.  The answer is, "Yes."  But knowing exactly where to start, especially in regards to your application is more difficult.

First, you should create a loadup sequence at the start of your application.  This should show a Splash screen and work on a thread if you can manage that.  You can then perform different tasks on different threads (i.e. perform any initialization tasks).  Once the once all of your pre-loading work is done, then you can show the login screen. 

Once the login is successful, you should really only need to loadup the VFP EXE and start your UDP session.

The key is to learn where your slowness is and then see if you can refactor your code to be more efficient, and then start using threads to remove the "slowness" from the end-users perception.  We have learned that people will wait for the application to start...but once it is started they want it to be fast Smile

P.S. continue to love working with your framework especially new version and now also the security editor and ddt. Saves tons of time

Thank you very much, we truly appreciate these comments!