473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Sluggish debugger

Hi all

My app scans a subfolder .\DataImporterPlugins\*.dll for assemblies, loads
them in, finds classes that implement IDataImporter, then creates an
instance of that class and shoves it into a list.

In the menu I can then select an instance and the main form will run the
Execute method of that class. What confuses me though is why the debugger
takes 30 seconds every time I hit F10 to execute the next line of code?

If I remove the ShowDialog() call the debugger works at full speed, if I
leave it in it is sluggish. The problem is that I need that ShowDialog
call, so how can I stop VS2005 from debugging so slowly?
Thanks
Pete
MainForm
=======
if (dataImporter.Prepare())
{
try
{
new Thread(delegate()
{
Thread.Sleep(1000);
dataImporter.Execute(ecoSpace, form);
}).Start();
form.ShowDialog(); /// **** LOOK HERE ****
}
finally
{
dataImporter.CleanUp();
}
}

DataImporter
=========
public bool Prepare()
{
OpenFileDialog ofd = new OpenFileDialog();
using (ofd)
{
ofd.CheckFileExists = true;
ofd.CheckPathExists = true;
ofd.DefaultExt = "*.xml";
ofd.Filter = "Xml files|*.xml";
ofd.FileName = FileName;
if (ofd.ShowDialog() == DialogResult.OK)
{
FileName = ofd.FileName;
return true;
}
return false;
}
}


public void Execute()
{
**************Breakline on the next line***************
XmlFileStream = new FileStream(FileName, FileMode.Open, FileAccess.Read,
FileShare.Read);
Stream xsdStream =
GetType().Assembly.GetManifestResourceStream("AirS oftware.Velocity.DataImport.Xml.AirfieldData.xsd") ;
XmlReader xsdReader = new XmlTextReader(xsdStream);
XmlSchema xsdSchema = System.Xml.Schema.XmlSchema.Read(xsdReader, null);

XmlReaderSettings readerSettings = new XmlReaderSettings();
readerSettings.ValidationType = ValidationType.Schema;
readerSettings.Schemas.Add(xsdSchema);

readerSettings.ValidationEventHandler += new
ValidationEventHandler(readerSettings_ValidationEv entHandler);

XmlReader = XmlTextReader.Create(XmlFileStream, readerSettings);

try
{
while (XmlReader.Read() && !Abort)
{

Oct 3 '07 #1
0 794

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

Similar topics

6
by: jonathan | last post by:
everyone, I'd like to be able to debug php scripts on the command line, going through the browser. In other words, set up the debugger to listen and then type in a url and have the code stop...
11
by: Ziaran _ | last post by:
I have written a new debugger. I think people will find it useful. Where can I post it for people to download? Thanks, Nir _________________________________________________________________...
25
by: Jeff | last post by:
Use the MS Script Editor included free with MS Office 2002 and above, for debugging Internet Explorer (IE). This subject is of great interest to many JS developers, as there is no obvious, low...
1
by: Rhino | last post by:
Is there any way to install the IBM Distributed Debugger V9.2 on Windows XP without first uninstalling DB2? I installed the IBM Distributed Debugger V9.2 on my Windows XP box in the hopes of...
18
by: R. Bernstein | last post by:
Okay, a bit of an exaggeration. Recently, I've been using Python more seriously, and in using the debugger I think one of the first things I noticed was that there is no "restart" ("R" in...
3
by: Doug | last post by:
I'm having problems w/ the VS2005 debugger with C#. It blows past any breakpoints in even the simplest "Hello World" console application. I can't do any step-by-step debugging. I've provided the...
4
by: Steve Richter | last post by:
using VS2005 to build a web site. The more pages I add to the web site, the more sluggish visual studio becomes. I have around 20 pages now and when I press F5 to test a page it can take over 10...
1
by: variaas | last post by:
Hey guys, I have a form with several textboxes (15+) that are in a tablelayoutpanel so they scale when the form is resized. Now when I resize the form, the action is very sluggish and slow. I'm...
7
by: Lainie | last post by:
Ya Ya, I know...another greenie!!! I'm very new at CSS and writing websites but I've gotten myself into this for the local Chamber of Commerce... The problem is: The page shows good on both IE6...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.