Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home >Search > Articles & Samples > Visual C++ .NET > Debugging


Search:
What's New - What's Hot
How to Debug the Exception  Version: 0.00     Price: $0.00  
Total Hits: 4  |  Today: 0Author: nicolas_chang      Rating:  
Read Reviews | Write Review |  Your Rating: 

No matter whether you are a computer programmer or a user, I think you have seen the dialog to remind you that your application has crashed, and remind you to contact application vendor or report to Microsoft.

User only needs reboot the device and report this issue to the service. For a programmer, it is the horrific beginning, but don't worry, this article will help you locate the position that causes the crash....

Double-click on the trace message in the Output window in Developer Studio to get to the line of code  Version: 0.00     Price: $0.00  
Total Hits: 4  |  Today: 0Author: JIANG, Sheng[MVP]      Rating:  
Read Reviews | Write Review |  Your Rating: 

When such a line is displayed in the Output window of your Developer Studio/Visual Studio, you can double-click on it, and jump to the location specified by the file path/line number pattern. It is very handy to generate debug dumps with easy access to the original line, so I wrote a macro to format debug dumps with the __FILE__ and __LINE__ preprocessors....

Getting around the need for a vararg #define just to automatically use __FILE__ and __LINE__ in a TRACE macro  Version: 0.00     Price: $0.00  
Total Hits: 3  |  Today: 0Author: Paul Mclachlan      Rating:  
Read Reviews | Write Review |  Your Rating: 

Someone else has probably done this before, but I haven't seen it, so I had to make this up.

If you want to create a preprocessor macro that outputs something to a log, you generally want one that works something like this:...

Hardwired's Debug Class  Version: 0.00     Price: $0.00  
Total Hits: 3  |  Today: 0Author: Inocentric      Rating:  
Read Reviews | Write Review |  Your Rating: 

I created this class because I need it to trace some objects in a multithreaded application. Got a lot of problems because of objects used before actual creation and objects referenced after destruction. Of course, you will not have encountered this kind of problems in small applications, but if the things get really complex... then you might consider to use this from the start....

Debugging Technique: Logger for making logs in many ways at once  Version: 0.00     Price: $0.00  
Total Hits: 8  |  Today: 0Author: DevRanjeet      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article is useful for those who want to see good design implementations. This article uses design patterns to solve the problem of logging in an effective way. Logging is an essential part of our development effort. Often we don't know the kind of inputs that can be passed as parameters to the API/Calls written. This can produce unexpected behavior by the application. So to check/verify, we must log the details in various ways, like we can store it in XML, Text file, Email, Print on consol...

Very easy to use logger for ATL/MFC/NonMFC applications  Version: 0.00     Price: $0.00  
Total Hits: 3  |  Today: 0Author: Gavriloaie Andrei      Rating:  
Read Reviews | Write Review |  Your Rating: 

There are many programmers who want to know what is behind their running application. For example: you successfully build you debug version, but in the release version something goes wrong and your application crashes. Now, you ask yourself: "What is wrong with my code?". The answer to this question, you can find yourself by doing some logging. You can do that by simply dumping your objects of interest into a file. This is not such a good idea because you must rewrite the same code over and over...

Remote Debugging in MSVC++ 6.0 - Step by step in the OnPaint message handler  Version: 0.00     Price: $0.00  
Total Hits: 3  |  Today: 0Author: Mauricio Ritter      Rating:  
Read Reviews | Write Review |  Your Rating: 

Most of the developers that work with graphic applications or work with applications that have full-screen window some times need to know exactly what is going on behind the OnPaint function or any other screen-drawing function. The problem is that when you set up a break point in the OnPaint message handler the focus of the window goes to the VC++ environment. When this happens, your on paint event is lost and you can't even see what's happening during the painting process. This situation is v...

Debugging Release Mode Problems  Version: 0.00     Price: $0.00  
Total Hits: 5  |  Today: 0Author: Keith Rule      Rating:  
Read Reviews | Write Review |  Your Rating: 

If you're reading this you've probably just discovered that you've made a classic developer mistake. You've been working under the assumption that your working Debug mode application will work in Release Mode. Now you know that there are no guarantees that debug code works in release mode....

Debug Tutorial Part 6: Navigating The Kernel Debugger  Version: 0.00     Price: $0.00  
Total Hits: 3  |  Today: 0Author: Toby Opferman      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this tutorial, we will be covering a few of the basic features of the kernel debugger, and get used to using it. I obviously can't cover everything, so only select topics will be covered to just get used to the debugger. Hopefully, you will find this article useful in your debugging adventures....

Error: Debugging Isn't Possible Because a Kernel Debugger is Enabled on the System  Version: 0.00     Price: $0.00  
Total Hits: 14  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

This message occurs when you try to debug managed code on a computer that is running Windows NT, Windows 2000, or Windows XP, or Windows Vista and that system has been started in debug mode....

The Year 2038 Bug - Y2K38 Problem - Many of your applications will crash     
Total Hits: 72  |  Today: 0Author: Ruchit S.      Rating:  
Read Reviews | Write Review |  Your Rating: 

Sign out from yahoo messenger or gmail talk. Open your System Date and Time Settings. Change the year to anything beyond 2038. You can try setting the year to 2040. Now try logging in to either of the messenger. It does not log in and gives you some error. Surprised!...

Visual Studio Team System Unit Testing     
Total Hits: 34  |  Today: 0Author: Nick Wienholt      Rating:  
Read Reviews | Write Review |  Your Rating: 

Of all the features in Visual Studio Team System (VSTS), none is more controversial than the unit testing features. The community campaign to convince Microsoft to move unit testing from the premium-level VSTS product into a more readily accessible version has been unsuccessful so far, and many are legitimately concerned that the requirement for VSTS will significantly decrease the uptake of the unit testing features. For all the controversy, the actual functionality of the unit testing has not ...

Catch all bugs with BugTrap!     
Total Hits: 255  |  Today: 0Author: Maksim Pyatkovskiy      Rating:  
Read Reviews | Write Review |  Your Rating: 

Some time ago, I was working on a multi-tier application with quite complex logic. The application was handling medical information, and it was important to correctly synchronize data under all circumstances. I put extra code to make the application as stable as possible, and added automatic backups and self-recovery. Do you think it solved all problems?- No, I was still searching for a tool to handle problems, seen by customers, remotely. How could I assist them and debug the problem if I lived...

Debugging technique  Version: 0.00     Price: $0.00  
Total Hits: 6  |  Today: 0Author: Junaij      Rating:  
Read Reviews | Write Review |  Your Rating: 

We can use ‘Watch’ window to get time information. An undocumented pseudoregister, @CLK, can serve as a timer. In many cases, we just want a rough idea of the time between two points, and @CLK makes it easy to find out how long it took to execute between two breakpoints. Please note that this time includes the debugger overhead. The trick is to enter @CLK in watch window, running time between two breakpoints will be added up to the current clock value. You can reset the value by typing @CLK=0 in...

Writing a basic Windows debugger  Version: 0.00     Price: $0.00  
Total Hits: 6  |  Today: 0Author: Ajay Vijayvargiya      Rating:  
Read Reviews | Write Review |  Your Rating: 

All of us have used some kind of debugger while programming in some language. The debugger you used may be in C++, C#, Java or another language. It might be standalone like WinDbg, or inside an IDE like Visual Studio. But have you been inquisitive over how debuggers work?

Well, this article presents the hidden glory on how debuggers work. This article only covers writing debugger on Windows. Please note that here I am concerned only about the debugger and not about compilers, linkers, or ...

Debug Tutorial Part 3: The Heap  Version: 0.00     Price: $0.00  
Total Hits: 2  |  Today: 0Author: Toby Opferman      Rating:  
Read Reviews | Write Review |  Your Rating: 

In the previous installment of this debug series, we learned about the stack. The stack is a temporary storage location for local variables, parameters, return addresses, and just about anything the compiler wants to use it for. In this installment of the debug series, we will learn about the heap in usermode....

Write Profilers With Ease Using High-Level Wrapper Classes  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Joachim H. Fröhlich and Reinhard Wolfinger      Rating:  
Read Reviews | Write Review |  Your Rating: 

The Profiling API of the common language runtime (CLR) provides services that exceed the needs of typical function and memory profilers. The latest extensions of the Profiling API for the Microsoft® .NET Framework 2.0 increase this functionality even further. These extensions enable tools to trace not only method calls at the class level, but also data flow across assembly boundaries without the need to instrument Common Intermediate Language (CIL) code for that purpose....

Advanced Techniques To Avoid And Detect Deadlocks In .NET Apps  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Joe Duffy      Rating:  
Read Reviews | Write Review |  Your Rating: 

Application hangs are one of the most frustrating situations a user can experience. They're terribly difficult to find before shipping, and even more difficult to debug after an application has been deployed. Unlike a crash, an application hang may not produce a crash dump or trigger custom failure logic. Users frequently shut down a frozen application before such information can be captured, meaning there's no tell-tale stack trace to help you find the source of the problem....

Supressing TRACE calls  Version: 0.00     Price: $0.00  
Total Hits: 3  |  Today: 0Author: Cristian Amarie      Rating:  
Read Reviews | Write Review |  Your Rating: 

The necessity: bloated/unnecessary/too many TRACE calls in the previously written code that disturb the debugging process....

Advanced Logging for all kind of applications  Version: 0.00     Price: $0.00  
Total Hits: 3  |  Today: 0Author: Alex Kucherenko      Rating:  
Read Reviews | Write Review |  Your Rating: 

This logging module has seven classes: CLog, CFuncLog, IStoreLog, CWinLog, CFileLog, CAutoCritic, CLogSimpleLock. The main class of the Logging module is the CLog class and in most cases it must be a singleton in the application. Being a Singleton is not a requirement for it though The Second most useful class is CFuncLog. This class is used to log functions when entering and leaving. Also this class gives the developer an easy way to log any data. The Class has overloaded operators , that is wh...


1  2  3  4  5  6  7  8  Next >> 


Disclaimer - Privacy
© 2002-2014 DevASP.net