We are testing a new release of an application developed with Access-2000, but find a very severe performance problem when the application is launched by a VB6 program that issues a SHELL command.
When launching the application by double-clicking in Windows Explorer, one screen will load in 2 seconds and will receive about 270KB of data (based on DUMeter).
If we launch the program via our VB6 program that uses the following code:
lvstr_AppID = Shell(gvstr_LocalPath, 1)
the same screen takes 23 seconds to load AND will receive over 40MB (yes, MB) of data. The value of LocalPath = C:\PROGRA~1\MICROS~2\Office\MSACCESS.EXE "C:\Program Files\FORPost\FORPost.mde"
I have confirmed that the same FORPost.mde is being used in both scenarios.
The workstation is running Win-XP and Office XP; we tried converting the database format from 2000 to 2002, but that made no difference.
The prior version of the application was created in the same fashion about two weeks ago, but it does not have this performance problem.
Does anyone know why the two different launch methods would produce such different results?
The backend database and the tables inside the MDE are the same; since it's an MDE, certainly the code can't be changing; there is no code that does anything based on how the application was launched.
I thought that I had seen enough strange things in my career, but this ranks in the top 5! Any and all suggestions are very welcome!
Learn from the mistakes of others. You won't live long enough to make all of them yourself.
When launching the application by double-clicking in Windows Explorer, one screen will load in 2 seconds and will receive about 270KB of data (based on DUMeter).
If we launch the program via our VB6 program that uses the following code:
lvstr_AppID = Shell(gvstr_LocalPath, 1)
the same screen takes 23 seconds to load AND will receive over 40MB (yes, MB) of data. The value of LocalPath = C:\PROGRA~1\MICROS~2\Office\MSACCESS.EXE "C:\Program Files\FORPost\FORPost.mde"
I have confirmed that the same FORPost.mde is being used in both scenarios.
The workstation is running Win-XP and Office XP; we tried converting the database format from 2000 to 2002, but that made no difference.
The prior version of the application was created in the same fashion about two weeks ago, but it does not have this performance problem.
Does anyone know why the two different launch methods would produce such different results?
The backend database and the tables inside the MDE are the same; since it's an MDE, certainly the code can't be changing; there is no code that does anything based on how the application was launched.
I thought that I had seen enough strange things in my career, but this ranks in the top 5! Any and all suggestions are very welcome!
Learn from the mistakes of others. You won't live long enough to make all of them yourself.