|Total Hits: 4 | Today: 0||Author: nicolas_chang|| 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....
|Total Hits: 4 | Today: 0||Author: JIANG, Sheng[MVP]|| 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....
|Total Hits: 3 | Today: 0||Author: Paul Mclachlan|| 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:...
|Total Hits: 3 | Today: 0||Author: Inocentric|| 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....
|Total Hits: 8 | Today: 0||Author: DevRanjeet|| 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...
|Total Hits: 5 | Today: 0||Author: Keith Rule|| 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....
|Total Hits: 3 | Today: 0||Author: Toby Opferman|| 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....
|Total Hits: 72 | Today: 0||Author: Ruchit S.|| 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!...
|Total Hits: 34 | Today: 0||Author: Nick Wienholt|| 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 ...
|Total Hits: 251 | Today: 0||Author: Maksim Pyatkovskiy|| 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...
|Total Hits: 6 | Today: 0||Author: Junaij|| 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...
|Total Hits: 6 | Today: 0||Author: Ajay Vijayvargiya|| 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 ...
|Total Hits: 2 | Today: 0||Author: Toby Opferman|| 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....
|Total Hits: 0 | Today: 0||Author: Joe Duffy|| 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....
|Total Hits: 3 | Today: 0||Author: Cristian Amarie|| Rating: |
The necessity: bloated/unnecessary/too many TRACE calls in the previously written code that disturb the debugging process....
|Total Hits: 3 | Today: 0||Author: Alex Kucherenko|| 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...
|Total Hits: 1 | Today: 0||Author: Muammar©|| Rating: |
It's amazing how your work suddenly vanishes into the air after spending the weekend coloring, resizing and moving around your well polished controls.
Q: Can you prevent that from ever happening?
A: Can't promise, however, here are a couple of tips to follow that helped me many times in overcoming this drama....
|Total Hits: 4 | Today: 0||Author: Sven Axelsson|| Rating: |
There are many different schools of how to debug a program (yeah, I know - write it correctly from the start), but whatever tools you prefer it is often very convenient just to use the printf approach. Well, since you are a modern C++ kind of person, you don't really want printf, you want to use an output stream, like cerr....
|Total Hits: 4 | Today: 0||Author: Andreas Saurwein Franci Gonçalves|| Rating: |
Most know the useful macros provided by various libraries named ASSERT, VERIFY (and similar) which just validates the provided argument. If the validation evaluates to false then a debug notification is raised....
|Total Hits: 3 | Today: 0||Author: Audrius Vasiliauskas|| Rating: |
When writing TRACE statements to the output window in DevStudio it is often useful to be able to go directly to the section of code that produced the TRACE output. Doing this is simple - you just use the __FILE__ and __LINE__ macros in your TRACE statements....