I'm something of a rookie, just one year using VB.Net. I have several applications that I'm developing, one of which has started going REALLY slowly when I run it from the IDE. It's a
Windows Forms app, by far the largest thing I work on, something over 20,000 lines now, of which 7400 lines are the Windows Generated stuff. Lots of tab controls with lots of buttons
and boxes and grids.
As it has grown it has been taking longer to start up when I want to run it in IDE debug mode, but beginning yesterday there was a VERY big jump in the time. I haven't been timing it before, but I now see it taking at least a minute and often more (1:30 is the worst I've seen today), from the time I click to Start until it finishes building and appears as a finished Form. It has not been taking anything like that amount of time, ever. 15 to 20 seconds maybe? It starts directly from the executable in about 4 seconds. This is a BIG pain, as I do lots of starting and stopping, to see the results of my work.
I got out an archived version from last week, and that one starts up OK. I began putting in breakpoints in both of them to try to track the progress and now I find that the older one takes about 3 seconds to reach the Public Sub New() in "Windows Form Designer generated code". The current slow one takes almost 40 seconds to reach the same point.
I thought that New() was just about the first thing the program did. Is there something behind the scenes that could be getting in trouble? Since last week I have not added any controls, I've just been working on code that interacts with the database it connects to.
Any ideas?
Windows Forms app, by far the largest thing I work on, something over 20,000 lines now, of which 7400 lines are the Windows Generated stuff. Lots of tab controls with lots of buttons
and boxes and grids.
As it has grown it has been taking longer to start up when I want to run it in IDE debug mode, but beginning yesterday there was a VERY big jump in the time. I haven't been timing it before, but I now see it taking at least a minute and often more (1:30 is the worst I've seen today), from the time I click to Start until it finishes building and appears as a finished Form. It has not been taking anything like that amount of time, ever. 15 to 20 seconds maybe? It starts directly from the executable in about 4 seconds. This is a BIG pain, as I do lots of starting and stopping, to see the results of my work.
I got out an archived version from last week, and that one starts up OK. I began putting in breakpoints in both of them to try to track the progress and now I find that the older one takes about 3 seconds to reach the Public Sub New() in "Windows Form Designer generated code". The current slow one takes almost 40 seconds to reach the same point.
I thought that New() was just about the first thing the program did. Is there something behind the scenes that could be getting in trouble? Since last week I have not added any controls, I've just been working on code that interacts with the database it connects to.
Any ideas?