473,785 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

very poor performance in visual studio 2005

Bob
Hi,
I have a fairly large but not massive project. Visual Studio 2005 is
starting to act very strange when I debug the project. For instance,
if i set a break point, I often can't expand an array to see the
contents. Instead, it will say "function evaluation timed out".
Also, it takes a very long time to start and stop debugging, and
sometimes it won't restart after I pause execution. I don't seem to
have nearly as many problems in smaller projects. Does anyone have
any suggestions on how to improve this performance?

Thanks,
Bob

Jul 17 '07 #1
6 6389
On Mon, 16 Jul 2007 19:06:57 -0700, Bob <bs********@yah oo.comwrote:
[...] For instance,
if i set a break point, I often can't expand an array to see the
contents. Instead, it will say "function evaluation timed out".
Also, it takes a very long time to start and stop debugging, and
sometimes it won't restart after I pause execution. I don't seem to
have nearly as many problems in smaller projects. Does anyone have
any suggestions on how to improve this performance?
I would guess that it has less to do with the size of the project and more
to do with how some particular class in that project that you're debugging
works. Maybe the type of class that's stored in that array, for example.

In particular, VS will by default try to evaluate properties, regardless
of how complicated they are. Sometimes this can run into trouble, if the
property does something beyond just returning the value of some private
field.

As a quick test, you can turn the property evaluate off to see if that
helps. If it does, then you may be able to track down exactly which
property or properties are problematic and hide them from the debugger
with an appropriate attribute applied to the property.

Pete
Jul 17 '07 #2
Bob
On Jul 16, 9:18 pm, "Peter Duniho" <NpOeStPe...@nn owslpianmk.com>
wrote:
On Mon, 16 Jul 2007 19:06:57 -0700, Bob <bshumsk...@yah oo.comwrote:
[...] For instance,
if i set a break point, I often can't expand an array to see the
contents. Instead, it will say "function evaluation timed out".
Also, it takes a very long time to start and stop debugging, and
sometimes it won't restart after I pause execution. I don't seem to
have nearly as many problems in smaller projects. Does anyone have
any suggestions on how to improve this performance?

I would guess that it has less to do with the size of the project and more
to do with how some particular class in that project that you're debugging
works. Maybe the type of class that's stored in that array, for example.

In particular, VS will by default try to evaluate properties, regardless
of how complicated they are. Sometimes this can run into trouble, if the
property does something beyond just returning the value of some private
field.

As a quick test, you can turn the property evaluate off to see if that
helps. If it does, then you may be able to track down exactly which
property or properties are problematic and hide them from the debugger
with an appropriate attribute applied to the property.

Pete
Hi Pete,

Thanks for your quick response. I don't think it is a matter of a
complicated class, because I get the same problem even with primitive
collections. For instance, I added the following code to the very
beginning of the project:

List<Stringwhy = new List<string>();
for (int i=0;i<300;i++){
why.Add("Why doesn't this show" + i);

}
Debug.Print("br eakpoint here");

If I breakpoint on the Debug.Print line and try to expand the "why"
list, it hangs for like 10 seconds, then gives me nothing. Later, it
sometimes give me "Function evaluation disabled because a previous
function evaluation timed out. You must continue execution to
reenable function evaluation." It also takes a very long time to start
and stop the project. Any ideas?

Jul 17 '07 #3
On Tue, 17 Jul 2007 01:02:50 -0700, Bob <bs********@yah oo.comwrote:
[...]
List<Stringwhy = new List<string>();
for (int i=0;i<300;i++){
why.Add("Why doesn't this show" + i);

}
Debug.Print("br eakpoint here");

If I breakpoint on the Debug.Print line and try to expand the "why"
list, it hangs for like 10 seconds, then gives me nothing. Later, it
sometimes give me "Function evaluation disabled because a previous
function evaluation timed out. You must continue execution to
reenable function evaluation." It also takes a very long time to start
and stop the project. Any ideas?
Nope, sorry. Start ripping things out of your project until it works
again.

Can you reproduce the problem in a brand new empty project, to which
you've only added the above?

If not, then I stand by my assertion that you've got something in your
project that's causing the problem. What that might be, I don't know off
the top of my head. Make sure you don't have things displayed in your
memory, watch, etc. windows that are being auto-evaluated when you break
in the debugger to check the above code. Then start removing things from
your project until you remove something that fixes the problem.

Somewhere, it seems that the debugger is trying to evaluate a function.
Since telling it to do so explicitly isn't part of your "repro steps",
obviously it is trying to do so as a result of some implicit evaluation.
When you find that implicit evaluation, you'll know what's going wrong.

Pete
Jul 17 '07 #4
Bob
On Jul 17, 3:02 am, Bob <bshumsk...@yah oo.comwrote:
On Jul 16, 9:18 pm, "Peter Duniho" <NpOeStPe...@nn owslpianmk.com>
wrote:
On Mon, 16 Jul 2007 19:06:57 -0700, Bob <bshumsk...@yah oo.comwrote:
[...] For instance,
if i set a break point, I often can't expand an array to see the
contents. Instead, it will say "function evaluation timed out".
Also, it takes a very long time to start and stop debugging, and
sometimes it won't restart after I pause execution. I don't seem to
have nearly as many problems in smaller projects. Does anyone have
any suggestions on how to improve this performance?
I would guess that it has less to do with the size of the project and more
to do with how some particular class in that project that you're debugging
works. Maybe the type of class that's stored in that array, for example.
In particular, VS will by default try to evaluate properties, regardless
of how complicated they are. Sometimes this can run into trouble, if the
property does something beyond just returning the value of some private
field.
As a quick test, you can turn the property evaluate off to see if that
helps. If it does, then you may be able to track down exactly which
property or properties are problematic and hide them from the debugger
with an appropriate attribute applied to the property.
Pete

Hi Pete,

Thanks for your quick response. I don't think it is a matter of a
complicated class, because I get the same problem even with primitive
collections. For instance, I added the following code to the very
beginning of the project:

List<Stringwhy = new List<string>();
for (int i=0;i<300;i++){
why.Add("Why doesn't this show" + i);

}
Debug.Print("br eakpoint here");

If I breakpoint on the Debug.Print line and try to expand the "why"
list, it hangs for like 10 seconds, then gives me nothing. Later, it
sometimes give me "Function evaluation disabled because a previous
function evaluation timed out. You must continue execution to
reenable function evaluation." It also takes a very long time to start
and stop the project. Any ideas?
I hope I am not speaking prematurely but I think I may have solved my
problem. I deleted all breakpoints (the option is in the debug menu
in Visual Studio) and the performance improved immensely.

Jul 18 '07 #5
Bob wrote:
On Jul 17, 3:02 am, Bob <bshumsk...@yah oo.comwrote:
On Jul 16, 9:18 pm, "Peter Duniho" <NpOeStPe...@nn owslpianmk.com>
wrote:
On Mon, 16 Jul 2007 19:06:57 -0700, Bob <bshumsk...@yah oo.com>
wrote:
[...] For instance,
if i set a break point, I often can't expand an array to see the
contents. Instead, it will say "function evaluation timed out".
Also, it takes a very long time to start and stop debugging, and
sometimes it won't restart after I pause execution. I don't
seem to have nearly as many problems in smaller projects. Does
anyone have any suggestions on how to improve this performance?
I would guess that it has less to do with the size of the project
and more to do with how some particular class in that project
that you're debugging works. Maybe the type of class that's
stored in that array, for example.
In particular, VS will by default try to evaluate properties,
regardless of how complicated they are. Sometimes this can run
into trouble, if the property does something beyond just
returning the value of some private field.
As a quick test, you can turn the property evaluate off to see if
that helps. If it does, then you may be able to track down
exactly which property or properties are problematic and hide
them from the debugger with an appropriate attribute applied to
the property.
Pete
Hi Pete,

Thanks for your quick response. I don't think it is a matter of a
complicated class, because I get the same problem even with
primitive collections. For instance, I added the following code to
the very beginning of the project:

List<Stringwhy = new List<string>();
for (int i=0;i<300;i++){
why.Add("Why doesn't this show" + i);

}
Debug.Print("br eakpoint here");

If I breakpoint on the Debug.Print line and try to expand the "why"
list, it hangs for like 10 seconds, then gives me nothing. Later,
it sometimes give me "Function evaluation disabled because a
previous function evaluation timed out. You must continue
execution to reenable function evaluation." It also takes a very
long time to start and stop the project. Any ideas?

I hope I am not speaking prematurely but I think I may have solved my
problem. I deleted all breakpoints (the option is in the debug menu
in Visual Studio) and the performance improved immensely.
Rule of thumb: if you have a breakpoint which has a conditional rule
(e.g. break when this.foo == 42 ), the performance is very slow.
cntrl-shift-f9 is your friend :)

FB

--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Jul 18 '07 #6
Bob
On Jul 17, 12:31 pm, "Peter Duniho" <NpOeStPe...@nn owslpianmk.com>
wrote:
On Tue, 17 Jul 2007 01:02:50 -0700, Bob <bshumsk...@yah oo.comwrote:
[...]
List<Stringwhy = new List<string>();
for (int i=0;i<300;i++){
why.Add("Why doesn't this show" + i);
}
Debug.Print("br eakpoint here");
If I breakpoint on the Debug.Print line and try to expand the "why"
list, it hangs for like 10 seconds, then gives me nothing. Later, it
sometimes give me "Function evaluation disabled because a previous
function evaluation timed out. You must continue execution to
reenable function evaluation." It also takes a very long time to start
and stop the project. Any ideas?

Nope, sorry. Start ripping things out of your project until it works
again.

Can you reproduce the problem in a brand new empty project, to which
you've only added the above?

If not, then I stand by my assertion that you've got something in your
project that's causing the problem. What that might be, I don't know off
the top of my head. Make sure you don't have things displayed in your
memory, watch, etc. windows that are being auto-evaluated when you break
in the debugger to check the above code. Then start removing things from
your project until you remove something that fixes the problem.

Somewhere, it seems that the debugger is trying to evaluate a function.
Since telling it to do so explicitly isn't part of your "repro steps",
obviously it is trying to do so as a result of some implicit evaluation.
When you find that implicit evaluation, you'll know what's going wrong.

Pete
Hi Pete,
Thanks again for your suggestions. I am pretty sure I figured it
out. I had a bunch of disabled breakpoints which apparently slow
things down dramatically. I deleted all breakpoints in the debug menu
and it seems to have resolved the issues.

Thanks,
Bob

Jul 18 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2315
by: Shapper | last post by:
Hello, I am starting 2 new projects to deliver in January 2006. I want to create them in Asp.Net 2.0 using Visual Studio 2005. All my clients web sites are Visual Studio 2003 projects in Asp.Net 1.1 / VB.NET. These web sites use Access Databases and NOT Microsoft SQL 2000. In the future I will need to make a few changes now and then to this web sites.
16
1377
by: John A. Bailo | last post by:
I was pricing VS.NET Professional 2005 upgrade and found a good price on Amazon -- but then I read the customer reviews and they were terrible: http://www.amazon.com/exec/obidos/ASIN/B000BT8TRG/ref%3Dpd%5Fkar%5F3/103-1460775-6910259 For example: "Lots of nifty features, but unfortunately it needs a few more months of development before it will really be stable. "
0
3354
by: fiona | last post by:
Innovasys Ltd., a leader in help authoring and documentation tools, today announced the inclusion of a tailored version of the Innovasys HelpStudio help authoring product, HelpStudio Lite, in the Microsoft Visual Studio 2005 Software Development Kit. By providing a full help authoring environment within the Visual Studio 2005 SDK, Innovasys is providing developers building components and products that integrate with Visual Studio 2005 a...
2
1658
by: bhag | last post by:
hi all, I'm writing because I haven't been able to find enough information at the book stores and at the MS web site on some of my questions. Perhaps I'm asking the wrong questions, but if you could help me out here, I'd really appreciate it. Iam a project trainee. I have to give an presentation over the topic, For engineering applications, whether VC++ 6.0 is more suitable
8
6273
by: WT | last post by:
Is it normal that Visual Studio sets the PreInit handler for a Page from the OnInit code ? No chance to fire it as OnPreInit is run befor OnInit. ??? CS
26
1451
by: Bill | last post by:
Every now and then when I go on my form in the IDE the form goes blank and the computer grinds away for 10 or 20 seconds and then everything reaapears. What exactly is the computer doing and is there a way to prevent this from happening
3
6063
by: Edwin Smith | last post by:
I have a 2 form project in VS2005 that now hangs whenever I try to do anything with the second form. This seems to have started when I added some SQL tables from a Pervasive v.9 database using the Pervasive ODBC driver. The devenv.exe process hangs and will not respond with about 50% cpu usage and about 100 megs of memory used. I am running it on an Athlon 64 bit dual core with 32 bit Windows XP pro. I have 2 megs of memory so I don't...
1
3602
by: johnlim20088 | last post by:
Hi, Currently I have 6 web projects located in Visual Source Safe 6.0, as usual, everytime I will open solution file located in my local computer, connected to source safe, then check out/check in some files and work on it. Let say, I want add new page to web project named websiteOrder.sln, i will open websiteOrder.sln in my local computer, connected to websiteOrder.sln located in Visual Source Safe 6.0(source safe located in another...
1
1971
by: =?Utf-8?B?RG91Zw==?= | last post by:
We have a very large code base and use the partitioned solution model for development and deployment. The problem is that in .NET 2005 the setup projects cause severe performance problems when working with the master build solution in the .NET IDE. Currently we have about 300 projects with another 150+ going to production in the coming months. The build server we use is a Windows 2003 server with quad Intel Xeon processors and 2GB...
0
10315
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5379
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.