Hi, group!
Here is some interesting problem:
Our company has developed a large VB6 application that runs very smoothly on
most environments.
However, all of a sudden one of our customers (unsing WinNT SP6) experienced
a dramatic
performance drop. We investigated, and it turned out that it depends on the
user that logs on.
Only certain users with user profiles have those performance troubles with
our software.
After further investigation it turned out that referencing propertys and
methods
of class instances through unspecific object variables (declared "as
Object")
ist over 100 times slower than normal.
For example, this works fine:
Dim o as MyInterestingClass
Dim i%
Set o = MyInterestingClassInstance
for i%=1 to 100
o.DoSomething()
next
This, however, is more than 100 times slower:
Dim o as Object
Dim i%
Set o = MyInterestingClassInstance
for i%=1 to 100
o.DoSomething()
next
Okay, we all know that using unspecific object variables can slow things
down, but not 100 times!
And, as I said, the stunning thing is that only certain users with user
profiles have the problem.
Has anyone heard of such a problem or knows the possible cause of that? How
can user profiles
affect VB6 .EXE files in that way? BTW: We tried to compile to native code
instead of P-Code -
it made no difference at all!
---
Helmut Hoerner
he*******************@hhsoft.com
(pls. leave out the nospam part if you want to send me an email)