Search 5,000,000+ questions and answers.

Frequently Asked Questions

How do I configure the Visual Studio debugger to break when an exception is thrown?

Debugging - Windows Forms FAQs
In Visual Studio go to the Debug | Exceptions | Common Language Runtime Exceptions | System and select System.NullReferenceException . In the When the exception is thrown group box, select Break into the debugger . Run your scenario. When the exception...
Related Questions

How do I set the debugger to Break on Exception?

Windows Forms FAQ - VS.NET Debugging
In VS.NET go to the Debug Menu >> "Exceptions..." >> "Common Language Runtime Exceptions" >> "System" and select "System.NullReferenceException" In the botton of that dialog there is a "When the exception is thrown:" group box, select "Break into the debugger" Run your scenario. When the exception is thrown, the debugger will stop and notify you with a dialog that says something like:
Related Questions

How do I write a test that passes when an expected exception is thrown?

JUnit FAQ
Add the optional expected attribute to the @Test annotation. The following is an example test that passes when the expected IndexOutOfBoundsException is raised: Test(expected=IndexOutOfBoundsException.class) public void testIndexOutOfBoundsException() { ArrayList emptyList = new ArrayList(); Object o = emptyList.get(0); }
Related Questions

How do I write a test that fails when an unexpected exception is thrown?

JUnit FAQ
Declare the exception in the throws clause of the test method and don't catch the exception within the test method. Uncaught exceptions will cause the test to fail with an error. Test public void testIndexOutOfBoundsExceptionNotRaised() throws IndexOutOfBoundsException { ArrayList emptyList = new ArrayList(); Object o = emptyList.get(0); }
Related Questions

Is there any way of using the Visual Studio debugger from the CDT?

cdt user FAQ
When I'm debugging, the wrong source file shows up. It has the same name, but from the wrong directory. What is wrong?.
Related Questions

How do I stop when a certain exception is thrown?

JDebugTool - Graphical Java Debugger
For JDebugTool to catch a thrown exception, select the Exceptions | Catch... menu item, from the menubar.
Related Questions

NS110-When is an InvalidName exception thrown?

FAQ
If the length of a CosNaming::Name is zero or the ID field of any NameComponent is an empty string, then InvalidName is thrown.
Related Questions

How do I examine a caught exception without breaking in the debugger?

Debugging - Windows Forms FAQs
There are .NET Framework classes that will give you the call stack information at a particular point. Call this method inside the catch block. using System; using System.Diagnostics; using System.Reflection; using System.Text; public static void TraceCaughtException...
Related Questions

How do I break to the debugger?

Win32 Progamming FAQ
My application keeps on stopping with "an unhandled exception C000005" You have a bug. This is the 32 bit equivalent to Exception 13: General Protection Violation. The NT kernel will also raise it when an application has done something wrong which it has detected: invalid arguments [checked build only?], overwriting the guard bytes at the end of GlobalAlloc()'d memory & the like.
Related Questions

How to configure Microsoft Visual Studio .NET 2003 solution files?

TeamCity FAQ - Confluence
Microsoft Visual Studio .NET 2003 solution build runner is build on the base of NAnt runner, described before. Solution task is used to run the build. Projects files are expected to be wellformed XML. You may configure this runner to run NUnit tests.
Related Questions

Can Mono run binaries produced by Visual Studio?

FAQ: General - Mono
Use our Mono Migration Analysis tool to check if everything that your application uses has been implemented in Mono or if there are special considerations to keep in mind. The Mono API today is somewhere in between .NET 1.1 and .NET 2.0, see our Roadmap for details about what is implemented.
Related Questions

What languages in Microsoft Visual Studio .NET are supported?

Google SOAP Search API
The service has been tested with a C# client auto-generated from WSDL by the wsdl.exe tool. It should work fine from any .NET language.
Related Questions

How do I manage code snippets that I use often in Visual Studio?

General - Windows Forms FAQs
I have code snippets that I use often. How can I manage them so I can easily used them? In Visual Studio, you can store commonly used code snippets on a tab (other than the Clipboard ring) in your Toolbox. You use drag and drop techniques to move the...
Related Questions

How do I prevent a component from being displayed in the Toolbox in Visual Studio?

General - Windows Forms FAQs
Use the ToolboxItem attribute set to false on your component or control class. This will prevent it from appearing in the Toolbox. [ ToolboxItem( false ) ] public class MyComponent : Component{..} Contributed from George Shepherd's Windows Forms FAQ
Related Questions

Do I have to have Visual Studio to use "ClickOnce"?

General - Windows Forms FAQs
No. While Visual Studio makes deploying "ClickOnce" applications simple, there are several other ways to deploy "ClickOnce" applications. The .NET Framework SDK includes a tool named MAGE(Manifest Editor & Generator) that provides both a UI (mageui...
Related Questions

NS115-In what circumstances is a CannotProceed exception thrown?

FAQ
CannotProceed exception works like a "catch all" in exception handling. If the operation cannot return successfully due to some reason (e.g. database connection time-out etc) other than the well-defined exceptions (NotFound, InvalidName, AlreadyBound or NotEmpty), then CannotProceed is thrown.
Related Questions

Can I trace the caught Exception without breaking into the debugger?

Windows Forms FAQ - VS.NET Debugging
Yes, there are framework classes that will give you the Call Stack information at a particular point.
Related Questions

Can I use Team Foundation Server alone without buying Visual Studio Team System?

Jim Lamb : Team Foundation Server FAQ
Yes. In order to do this you will need to buy Visual Studio Team Foundation Server and a Client Access License for proper communication with the server. Team Explorer, which is included with Team Foundation Server, is a stand alone client that uses the Visual Studio 2005 shell providing a UI for source control, work item tracking and all the other features. For more information on licensing Visual Studio Team System (including Team Foundation Server) see the Team System Licensing White Paper.
Related Questions

Why can't I see the C-Sharpener For VB menu in Visual Studio .NET?

Frequently Asked Questions (FAQ) about C-Sharpener For VB
Assuming that you have successfully installed C-Sharpener For VB, the menu option should automatically appear. If it doesn't appear, then try the following: Turn on the checkbox to the left of C-Sharpener For VB and click the OK button. The menu option should now appear.
Related Questions

What are the Visual Studio Express Editions?

Frequently Asked Questions
The Visual Studio Express Editions are an expansion of the Visual Studio and SQL Server product line to include fun, simple and easy-to-learn tools for non-professional developers like hobbyists, students and novice developers who want to build dynamic Windows applications, Web sites, and Web services.
Related Questions

Why do I get ArrayIndexOutOfBoundsException in the Symantec Visual Cafe debugger?

Building and Running FAQs
The Visual Cafe debugger is set to trap ArrayIndexOutOfBoundsException exceptions by default. Xerces-J uses ArrayIndexOutOfBoundsException internally to signal exceptional, but not erroneous conditions. In order to run Xerces-J2 inside Visual Cafe's debugger, you need to turn off the trapping of these exceptions.
Related Questions

How do I debug a designer for a control in Visual Studio?

Debugging - Windows Forms FAQs
You need to use a second instance of Visual Studio to debug the one that's running the code. Put your control on a form. Start a second instance of Visual Studio and choose the Debug | Processes menu item. Double-click devenv.exe and choose Common...
Related Questions

How do I get a full call stack when debugging in Visual Studio .NET 2003?

Debugging - Windows Forms FAQs
In VS2003, debug info for unmanaged code is turned off by default. This is why you will not see the call stack including code in the System DLLs. To enable debugging for unmanaged code go to your project properties dialog and turn on as shown here: Contributed...
Related Questions

What is Wise for Visual Studio .NET?

Setups Installations - FAQs Wise
Wise for Visual Studio .NET is a specially designed Wise product that operates within the Visual Studio interface, with the full functionality of the Wise installation authoring environment. Wise for Visual Studio .NET™ is the only full-featured installation product embedded directly into Microsoft® Visual Studio® .NET. Our participation in the Visual Studio Integration Program and our close partnership with Microsoft gives us exclusive access to Microsoft technology.
Related Questions

Can I still use Microsoft Visual Studio?

blueink.biz -
Blue Ink was designed to work with Microsoft Visual Studio. Blue Ink's default set of templates output .sln and .proj files so you can immediately open and work with a generated solution using Microsoft Visual Studio. Yes, in most respects Blue Ink generated solutions are no different than manually coded solutions. Blue Ink generated solutions integrate fully with source control applications such as Microsoft SourceSafe either through Microsoft Visual Studio or externally.
Related Questions

Do I have to use Visual Studio?

FAQ
No. QuickAdmin is a standard .NET control, so just needs to be referenced when compiling your C# code.
Related Questions

Got A Question? Ask Our Community!


More Questions >>

© Copyright 2007-2008 QueryCAT
About • Webmasters • Contact