grwallace
asked on
vb.net 2008 VERY slow when trying to debug after any changes
I have a fairly large application, and whenever I move from making changes - no matter how small - to debugging it takes several minutes to begin. If I stop and restart without any changes than it is very much quicker.
Any ideas?
Any ideas?
ASKER
This is interesting.
THis application is using a databasw with a large number of tables, and somehow a tableadapter has been created for every table in the database and I can't seem to get rid of them. I don't know if they are considered to be classes. I hardly ever use tableadapters - with some of the tables having in excess of a million records there are of little use, so where they came from I don't know.
the only other classes are for the Activereports documents.
THis application is using a databasw with a large number of tables, and somehow a tableadapter has been created for every table in the database and I can't seem to get rid of them. I don't know if they are considered to be classes. I hardly ever use tableadapters - with some of the tables having in excess of a million records there are of little use, so where they came from I don't know.
the only other classes are for the Activereports documents.
Did you use a wizard to create your table-adapters or do you use them only in code ?
ASKER
I don't use tableadapters at all - I have no idea how they all appeared.
If you remove those items from your project, does it still build and run ?
ASKER
the appear in the toolbox - see the attached file. I don't use them in the project. THis may be a "red herring" in that they have nothing to do with the problem, but I have no idea where they came from
Clip1.jpg
Clip1.jpg
As long as they are in the toolbox, I don't think its influencing your compile performance.
You can always remove these items and test it.
You can always remove these items and test it.
ASKER
When I tried to remove them it didn't mak any difference, but it re-loaded them the next time I loaded the project. Assuming this is not the cause, have you any other ideas I might try?
You may create a simple project to check if the issue also occurs on new project. This could help on identity if this is a VS IDE related issue or Project Specific issue.
--> does it compile fast with a new project or not ?
--> does it compile fast with a new project or not ?
ASKER
I have several other projcts which are OK - this problem seems to be project specific
What changes did you make in the last days ? Added a reference, only new classes, ...
ASKER
I only added a few lines of code. This program has beel like this for a while, not just the past few days
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The application is actually fully unbound a it is a full Transaction Processing system and, try as I did, I couldn't get TP to work withoug coding it manually. I simply deleted the two datasets and the unused table adabters dissapeared and the project now works as it should.
thanks a lot for your help
thanks a lot for your help
Glad to see that the problem is solved, but next time try to answer correctly on my questions please
>> Did you use a wizard to create your table-adapters or do you use them only in code ?
--> I don't use tableadapters at all - I have no idea how they all appeared.
>> Did you use a wizard to create your table-adapters or do you use them only in code ?
--> I don't use tableadapters at all - I have no idea how they all appeared.
ASKER
My answer was actually correct in the contyext in which it was given. The program was started last October, and I tried various things to get the required result. I had obviously done something which created a tableadapter for every table in the DB. I mentioned this in the second posting - and also that I did not know how to get rid of them. Getting rid of them by deleting the datasets did sove the problem.
I also will acknowledge in hindsite that it is only because of your questions that the problem was resolved and that it was unfair to award all of the points to the posted solution.
I apologise for this, and thank you for your efforts anyway
I also will acknowledge in hindsite that it is only because of your questions that the problem was resolved and that it was unfair to award all of the points to the posted solution.
I apologise for this, and thank you for your efforts anyway
I'd like to suggest checking if you installed any other 3rd party add-ins on your VS 2008. You can disable them by "Tools|Add-in Manager". Some add-in may results a performance issue on VS IDE.
You may create a simple project to check if the issue also occurs on new project. This could help on identity if this is a VS IDE related issue or Project Specific issue.
Did you add any assemble in the project these days? Because VS IDE complied the project with all referenced assemble, some assemble may cause the VS IDE take a long to compile.