I have a program that I run on several network computers. When I compiled the latest version, it works very slowly on two PCs on the network, but works great for everyone else.
This happened to my old computer when I had 2 GB of RAM. When I remove the extra 2gb and recompile it will work just fine for everyone.
Now I am on a completely new machine and I have the same problem. I tried rebuilding the project after rebooting, but still have the same problem.
For all other PCs, the program loads in about 3-5 seconds. These two PCs take from 45 seconds to 1.5 minutes to boot ...
One of the computers is the older Dell Dimension 8200, but the other is the new OptiPlex, which is identical to several other computers on the network, so this really makes it so confusing.
Now I had to go back to the old version so that it worked correctly for everyone.
Does anyone have an idea to try something?
Thanks in advance!
Edit:
Well, yesterday was a grueling day trying to solve this problem. Here is what I tried and where the problem starts:
Using a new program
Reverted to old versions of all updated components, but still had the same problem
Using an old program
I decided to go back to the drawing board and start with the old version of the application and gradually add new features to a small part at a time.
- The old version was compiled using old components - the program works fine
- Updated to new DevExpress components - the program works great
- Updated to new ESBPCS components - the program works great
- Updated to new DeepSoftware components - the program works great
So now we know that nothing happens with updated sets of components ...
- Added 1 image to each of 2 image lists - the program works great
- Added a new database table - the program works fine
- Added code to open and close a new table - the program works fine
- A new action list has been added to the action and a menu item and a toolbar button have been added to the new action (the action is currently doing nothing) - the program works fine
- A new BLANK form for the application has been added and a code has been added to open a new form - BAM !!!
So, adding just one form to the application is what causes the problem! I deleted all the code to open the form, commented out the usage suggestions and deleted the usage record from the project source, and everything returned to normal.
Anyone got any about this?
Thanks!
Edit 2:
For @Warren P, here is my .DPR source:
program Scheduler; uses ExceptionLog, Forms, SchedulerMainUnit in 'SchedulerMainUnit.pas' {FrmMain}, SchedulerDBInfoUnit in 'SchedulerDBInfoUnit.pas' {FrmDBInfo}, SchedulerHistoryUnit in 'SchedulerHistoryUnit.pas' {FrmHistory}, SchedulerOptionsUnit in 'SchedulerOptionsUnit.pas' {FrmOptions}, SchedulerExtVersionUnit in 'SchedulerExtVersionUnit.pas' {FrmExtVersion}, SchedulerSplashUnit in 'SchedulerSplashUnit.pas' {FrmSplash}, SchedulerInfoUnit in 'SchedulerInfoUnit.pas' {FrmInfo}, SchedulerShippedUnit in 'SchedulerShippedUnit.pas' {FrmShipped}; {<-- This is the new form with the issue} {$R *.res} begin Application.Initialize; Application.Title := 'SmartWool WIP Scheduling Assistant'; Application.CreateForm(TFrmMain, FrmMain); Application.CreateForm(TFrmDBInfo, FrmDBInfo); Application.CreateForm(TFrmHistory, FrmHistory); Application.CreateForm(TFrmOptions, FrmOptions); Application.CreateForm(TFrmExtVersion, FrmExtVersion); Application.Run; end.
And here is the initialization section of the main form to create the splash:
initialization FrmSplash:=TFrmSplash.Create(Application); FrmSplash.Show; FrmSplash.Refresh;
Edit 3:
Anybody ??? You are welcome?