Performance issue problem with vb6 IDE and OS XP and above

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<span style="font-size:10.0pt; font-family:"Calibri","sans-serif" Our main product was written in vb6. In these days we are going to beta with our new version in .Net.
<span style="font-size:10.0pt; font-family:"Calibri","sans-serif" We will need to support the vb6 product in the next few years and we have performance issue in Visual Basic IDE with OS XP or newer.
<span style="font-size:10.0pt; font-family:"Calibri","sans-serif" Today, our developers are using win2000 VM for develop with vb6 IDE because this issue but we are moving to work with TFS which is not support this OS and we need to find solution to work
with both environment on the same OS.
<span style="font-size:10.0pt; font-family:"Calibri","sans-serif"
<span style="font-size:10.0pt; font-family:"Calibri","sans-serif" This is the performance issue description:
<span style="font-size:10.0pt; font-family:"Calibri","sans-serif"
<span style="font-size:10.0pt; font-family:"Calibri","sans-serif" Environment:
<span style="font-size:10.0pt; font-family:"Calibri","sans-serif" â Visual Basic6 Service Pack 6.

<span style="font-size:10.0pt; font-family:"Calibri","sans-serif" â Microsoft Windows XP Service Pack 2 or above.
<span style="font-size:10.0pt; font-family:"Calibri","sans-serif" â Machine â 2 Quad CPU with 4 GB Ram
<span style="font-size:10.0pt; font-family:"Calibri","sans-serif" Description:
<span style="font-size:10.0pt; font-family:"Calibri","sans-serif" We have a group containing several projects (standard EXE, ActiveX DLL and ActiveX controls)
<span style="font-size:10.0pt; font-family:"Calibri","sans-serif" When we run the project via vb6 IDE it takes approx 5 minutes to reach to the first line of code, whereas running the same group in Windows 2000 takes few seconds (1-2 seconds).
<span style="font-size:10.0pt; font-family:"Calibri","sans-serif" In order to identify the problem I created a single ActiveX DLL containing 100 MultiUse classes.
<span style="font-size:10.0pt; font-family:"Calibri","sans-serif" Running this project under Windows XP takes 30 seconds. Running the same project under Windows 2000 takes no time (less than one second).
<span style="font-size:10.0pt; font-family:"Calibri","sans-serif" My suspicious is that Visual Basic IDE registers the classes in the registry (prog-id of each class) therefore I changed the project so it includes 99 private classes and only one MultiUse.
The problem did not occur.
<span style="font-family:Calibri,sans-serif; font-size:x-small any suggests?

View the full article
 
Back
Top