Big VB6 Project Mystery
Posted: 07 Oct 2013, 21:21
I would appreciate any advise regarding the following mystery:
I migrated every single label in a massive VB6 project to use the LblCtlsLibUCtl.WindowlessLabel control instead of VB.Label (it was not easy - it took a whole day). Once this is done, I see that I can no longer run the project - it is stuck on 100% CPU for over ten minutes every time I either try to run it from inside VB IDE, or try to compile it. So I experimented as follows:
- I tried a simpler project with only a few of the same forms and controls. It loaded fine.
- I tried adding more and more forms and controls from the above project. Every form/control I added made it slower and slower. In other words this stuck/waiting period became longer and longer the more forms and controls I added (Although it did run fine once this period was over). I stopped adding forms when it reached about six minutes. So basically I understood from this that the above complete project was not stuck, it was just working hard for ten minutes until I killed it.
- Note that this identical huge project worked perfectly fine before I switched label controls.
- I tried downloading an old version of LblCtlsLibUCtl and ran the project with it, but this didn't help.
- I thought that maybe it had to do with the amount of labels in a single project so I made an empty project with about 6000 labels in 100 forms. But this worked fine.
Any ideas on what I could test next? Is there anything in the label control that could make the IDE work really hard when it runs or compiles? Perhaps it has to do with where the controls are placed, or interactions with other controls/containers, or specific methods/events that are used on the controls?
I migrated every single label in a massive VB6 project to use the LblCtlsLibUCtl.WindowlessLabel control instead of VB.Label (it was not easy - it took a whole day). Once this is done, I see that I can no longer run the project - it is stuck on 100% CPU for over ten minutes every time I either try to run it from inside VB IDE, or try to compile it. So I experimented as follows:
- I tried a simpler project with only a few of the same forms and controls. It loaded fine.
- I tried adding more and more forms and controls from the above project. Every form/control I added made it slower and slower. In other words this stuck/waiting period became longer and longer the more forms and controls I added (Although it did run fine once this period was over). I stopped adding forms when it reached about six minutes. So basically I understood from this that the above complete project was not stuck, it was just working hard for ten minutes until I killed it.
- Note that this identical huge project worked perfectly fine before I switched label controls.
- I tried downloading an old version of LblCtlsLibUCtl and ran the project with it, but this didn't help.
- I thought that maybe it had to do with the amount of labels in a single project so I made an empty project with about 6000 labels in 100 forms. But this worked fine.
Any ideas on what I could test next? Is there anything in the label control that could make the IDE work really hard when it runs or compiles? Perhaps it has to do with where the controls are placed, or interactions with other controls/containers, or specific methods/events that are used on the controls?