473,797 Members | 3,204 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Slow Debugger

Hi,

I had this problem before I reinstalled Windows XP SP2 (fully patched),
but I cant remember what I had to do to fix it :(

I have a loop which scans every pixel in a series of images. When
compiled it completes 10 images in about 6 seconds, which is acceptable
and as expected.

When i run it through VS it does about 1 frame every 10 seconds.
Obviously it should be slightly slower, but not this bad!
Ive tried turning off "edit and continue" but that doesnt make a difference.
Can anyone offer any other suggestions?

My VS setup is as default, I've not changed any other settings.

Thanks,

Regards

Andrew
Feb 7 '06 #1
14 1749
Hi,

"Andrew Bullock" <an************ *********@ANDnt lworldTHIS.com> wrote in
message news:L3******** **********@news fe4-gui.ntli.net...
I have a loop which scans every pixel in a series of images. When compiled
it completes 10 images in about 6 seconds, which is acceptable and as
expected.

When i run it through VS it does about 1 frame every 10 seconds. Obviously
it should be slightly slower, but not this bad!>
Ive tried turning off "edit and continue" but that doesnt make a
difference.
Can anyone offer any other suggestions?

My VS setup is as default, I've not changed any other settings.


DO you have any conditional breakpoint ?
Ctrl + ALT + B show you all your breakpoints, try to disable all

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Feb 7 '06 #2
Ignacio Machin ( .NET/ C# MVP ) wrote:
Hi,
DO you have any conditional breakpoint ?
Ctrl + ALT + B show you all your breakpoints, try to disable all


No I dont have any.

Since posting I found that it was reporting something along the lines of
"another debugger is handling JIT debugging, repair VS"

So I just have, and its made no difference :(
Andrew
Feb 7 '06 #3
Hello, Andrew!

AB> Can anyone offer any other suggestions?

AB> My VS setup is as default, I've not changed any other settings.

Just a hint, maybe there are old breakpoints in the application?

( http://blogs.msdn.com/matt_pietrek/a...07/501274.aspx ) - for details

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Feb 7 '06 #4
Vadym Stetsyak wrote:
Hello, Andrew!

AB> Can anyone offer any other suggestions?

AB> My VS setup is as default, I've not changed any other settings.

Just a hint, maybe there are old breakpoints in the application?

( http://blogs.msdn.com/matt_pietrek/a...07/501274.aspx ) - for details

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com

Hi,

Thanks for the advice, but I dont have any breakpoints!

I have had 2003 and C# Express installed before, and ive found a
Microsoft post about this causing problems, but ive not got any of the
symptoms they suggested.

I have uninstalled the old versions, and repaired 2k5 but it hasnt fixed
anything.

Will removing 2k5 and reinstalling make any difference or do I have to
do all of Windows again?

I've tried disabling the VS Hosting process, Ive not got any
breakpoints, Im not getting the debug to Optimise code, im not allowing
unsafe code or unmanaged debugging.

Im getting really mad with this please can someone help!!!

Thanks

Andrew
Feb 7 '06 #5
What's the size of these images, how much memory do you have available in
your system, what's the memory consumption when you run this from within VS
and from the shell?
How's the performane when running the debug build from the shell (explorer
or command line)?

Willy.
"Andrew Bullock" <an************ *********@ANDnt lworldTHIS.com> wrote in
message news:ru******** *********@newsf e6-gui.ntli.net...
| Vadym Stetsyak wrote:
| > Hello, Andrew!
| >
| > AB> Can anyone offer any other suggestions?
| >
| > AB> My VS setup is as default, I've not changed any other settings.
| >
| > Just a hint, maybe there are old breakpoints in the application?
| >
| > ( http://blogs.msdn.com/matt_pietrek/a...07/501274.aspx ) -
for details
| >
| > --
| > Regards, Vadym Stetsyak
| > www: http://vadmyst.blogspot.com
|
|
| Hi,
|
| Thanks for the advice, but I dont have any breakpoints!
|
| I have had 2003 and C# Express installed before, and ive found a
| Microsoft post about this causing problems, but ive not got any of the
| symptoms they suggested.
|
| I have uninstalled the old versions, and repaired 2k5 but it hasnt fixed
| anything.
|
| Will removing 2k5 and reinstalling make any difference or do I have to
| do all of Windows again?
|
| I've tried disabling the VS Hosting process, Ive not got any
| breakpoints, Im not getting the debug to Optimise code, im not allowing
| unsafe code or unmanaged debugging.
|
| Im getting really mad with this please can someone help!!!
|
| Thanks
|
| Andrew
Feb 7 '06 #6
Willy Denoyette [MVP] wrote:
What's the size of these images, how much memory do you have available in
your system, what's the memory consumption when you run this from within VS
and from the shell?
How's the performane when running the debug build from the shell (explorer
or command line)?

Willy.

Each image is 720x560.
My system has 512Mb Ram, with a 1Gb fixed page.

When running the debug .exe from the command prompt, it loads 11 images
and scans them in 6s, the memory usage goes from 19Mb to 85Mb.

When running through VS it takes 165s and the memory usage goes from 20
to 56Mb.

Can i re-iterate that this never used to happen (I haven't changed the
code), only since I reinstalled Windows XP SP2 Fully Patched and went
from C# Express 2005 Beta 2 to C# (VS) 2005.

In my current install of windows, i... Installed VS 2k5, Installed VS
2k3, uninstalled 2k3, installed C# 2k5 Express (not beta 2), uninstalled
express, repaired 2k5.

I'll reinstall windows if it will fix it, but id like to try everything
else first.


Thanks

Andrew
Feb 7 '06 #7
Ok, but that's the memory taken by your application only, right?. Can you
look at the total memory consumption when run from VS? In short, I'm trying
to be sure there is no paging happening when run from VS as I see no other
reason for the enormous slow down.
You should aslo watch the other processes CPU usage with perfmon, other
processes (also VS) should not consume (at least not visible) CPU cycles
when this application runs.

Willy.
"Andrew Bullock" <an************ *********@ANDnt lworldTHIS.com> wrote in
message news:BW******** ********@newsfe 3-gui.ntli.net...
| Willy Denoyette [MVP] wrote:
| > What's the size of these images, how much memory do you have available
in
| > your system, what's the memory consumption when you run this from within
VS
| > and from the shell?
| > How's the performane when running the debug build from the shell
(explorer
| > or command line)?
| >
| > Willy.
|
|
| Each image is 720x560.
| My system has 512Mb Ram, with a 1Gb fixed page.
|
| When running the debug .exe from the command prompt, it loads 11 images
| and scans them in 6s, the memory usage goes from 19Mb to 85Mb.
|
| When running through VS it takes 165s and the memory usage goes from 20
| to 56Mb.
|
| Can i re-iterate that this never used to happen (I haven't changed the
| code), only since I reinstalled Windows XP SP2 Fully Patched and went
| from C# Express 2005 Beta 2 to C# (VS) 2005.
|
| In my current install of windows, i... Installed VS 2k5, Installed VS
| 2k3, uninstalled 2k3, installed C# 2k5 Express (not beta 2), uninstalled
| express, repaired 2k5.
|
| I'll reinstall windows if it will fix it, but id like to try everything
| else first.
|
|
|
|
| Thanks
|
| Andrew
Feb 7 '06 #8
Willy Denoyette [MVP] wrote:
Ok, but that's the memory taken by your application only, right?. Can you
look at the total memory consumption when run from VS? In short, I'm trying
to be sure there is no paging happening when run from VS as I see no other
reason for the enormous slow down.
You should aslo watch the other processes CPU usage with perfmon, other
processes (also VS) should not consume (at least not visible) CPU cycles
when this application runs.

Willy.


When run from shell:

before opening: PF Usage is at 377MB
After opening: PF goes to 390Mb

When i click "run" in my program:
In perf mon the "% Proc Time" is at an avg of about 88 for the 6s of
running time.
the Pages/sec line is at 100 for the duration of the operation.
The average disc cue length is at about 4400 for the duration.

When run through VS:
When i start the program PF usages goes from 377 to 395 and in perfmon
the pages/sec line jumps to 90 and stays there for about 30s until it
drops off to 0.

When i click "run" there is a pagefile spike to 100 each time it loads
an image and a 5000 disc cue length. Processor usage is at 100% all the time

Is this enough information? Please tell me what else i can give you to
help diagnose this issue.

Thanks

Andrew
Feb 7 '06 #9

Scaring, the number of Pages/Sec is extremely high, that means there is
memory trashing (extreme paging).
What's the value of the Memory' 'Committed bytes' and the 'Available Bytes'
counter?
What else do you have running on this box? What are these processes
consuming in terms of committed bytes?

Willy.
"Andrew Bullock" <an************ *********@ANDnt lworldTHIS.com> wrote in
message news:pA******** **********@news fe7-win.ntli.net...
| Willy Denoyette [MVP] wrote:
| > Ok, but that's the memory taken by your application only, right?. Can
you
| > look at the total memory consumption when run from VS? In short, I'm
trying
| > to be sure there is no paging happening when run from VS as I see no
other
| > reason for the enormous slow down.
| > You should aslo watch the other processes CPU usage with perfmon, other
| > processes (also VS) should not consume (at least not visible) CPU cycles
| > when this application runs.
| >
| > Willy.
| >
|
|
|
| When run from shell:
|
| before opening: PF Usage is at 377MB
| After opening: PF goes to 390Mb
|
| When i click "run" in my program:
| In perf mon the "% Proc Time" is at an avg of about 88 for the 6s of
| running time.
| the Pages/sec line is at 100 for the duration of the operation.
| The average disc cue length is at about 4400 for the duration.
|
|
|
| When run through VS:
|
|
| When i start the program PF usages goes from 377 to 395 and in perfmon
| the pages/sec line jumps to 90 and stays there for about 30s until it
| drops off to 0.
|
| When i click "run" there is a pagefile spike to 100 each time it loads
| an image and a 5000 disc cue length. Processor usage is at 100% all the
time
|
| Is this enough information? Please tell me what else i can give you to
| help diagnose this issue.
|
| Thanks
|
| Andrew
Feb 7 '06 #10

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

Similar topics

0
1997
by: Michael Schreiber | last post by:
Hi Everyone, Does anybody knows why php runs so damm slow on solaris. PHP works fine, but if you use the array function it get really slow. everyone could try it on different platforms. fill a array with 100.000 elements in a loop and you will see what i mean. debugger output shows that php ist trying to get memory for each element.
1
1495
by: Brian Henry | last post by:
I know some of you have seen this problem. Stepping through code in the debugger is slow as heck in Visual Studio 2005. Well here is the problem, Edit and continue. Because edit and continue does run time compileing of code as it executes, it causes a big slow down in execution time. To disable this and return the debugger to the normal speed as it was in VS.NET 2003, do the following. Go to tools menu > options Select debugging form...
7
326
by: Shaji | last post by:
Dear All, I am using VS.Net (and most of you, of course) for a quite long period for web development for medium to large development tasks. My humble opinion is vs.net is eating up a lot of developer time, as far as the web development is concerned.
6
8583
by: B B | last post by:
Okay, here is what's happening: I have a reasonably fast laptop (1.4 GHz Mobile M, so comparable to 2.5GHz P4) doing .net development. Running Windows XP pro, SP2 IIS is installed and running fine All SQL Servers I am referring to share a small (10 computers or so) LAN with a 100MB Switch. No other computers on the LAN exhibit this problem.
3
1272
by: Bob Graham | last post by:
This code: txRate.Text = Format(payRate, "C") (payRate is already succesfully set to a value such as 15D) takes about 3-4 seconds to run the first time, after that it's plenty fast. What makes it slow on the first call? Bob Graham
0
1166
by: schmurgon | last post by:
Debugging my 1.1 framework ASP.NET web application (which talks to a ..NET Web Service on the same machine) has become extremely slow since installing VS 2005 and / or SQL Server 2005. It takes between 2mins to 4 mins to step into the first web page! Watching the output window, the first 15 to 20 assemblies load fast, but then performance gradually decreases to the point where a single line (indicating a loaded assembly in the Temporary...
6
2032
by: DCC-700 | last post by:
I am running VB for ASP.Net in VS.Net 2003 and am experiencing extremely slow response in the ide at times and the debugger. Below is additional detail on the problem. Any thoughts are much appreciated. VS.Net IDE Extremely Slow Symptoms: · When you type in IDE editor you have to wait several seconds before the text appears Observations: · This occurs for a page with many controls and a lot of code when editing
13
1597
by: rperreta | last post by:
I'm using VB .NET and it is extremely slow. I went through all the support channels a few months back and since then have stopped development on the project. We are losing money and I have developers idle. Whats the deal MS? Everyone on the forums and all over the web are complaining about this why has there not be a hotfix or something yet? I have an application that is mid stream upgrade and the exe as well as the dev environment is...
7
2108
by: colin | last post by:
Hi, Ive written a 3dmodel editor, and it works fairly well it harldy uses any cpu exept when its loading a texture from bitmap in the debugger, at all other times it hardly uses any cpu but from the debugger even in release mode it takes a second or so to load a 65k texture, with a 2ghz pc this is 10k instructions per pixel ! I cant understand what its doing here, can anyone shed any light on this ? I have the d3d debug turned off...
7
3325
by: =?Utf-8?B?bGxldmk=?= | last post by:
Hi there. I have a simple web page ( 1 textbox, 1 label, 1 button). The page runs under IIS, but it takes at least a minute before it allows me to enter keystrokes after pressing ctl+f5. environment: vista home premium, visual studio .net 2005. Any ideas as to why this is so slow? how may i resolve this issue? Thanks in advance,
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9537
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10209
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,...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7560
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
5459
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
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
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
3750
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.