Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Programming » Debugging   (RSS)

Examine .Net Memory Leaks

Writing programs using .Net is very productive. One reason is because much of memory management is “managed” for you. In C, C++ and other “native” languages, if you allocate memory, you’re responsible for freeing it. There were stopgap measures, like

Windows Security and how it affects running generated code

Here I described how VFP generates executable code and runs it for early and late binding COM clients and implementing COM interfaces. However, there is an important issue with generating and running executable code in the same process. A computer has

Third Party application does work as a COM+ application

A few months ago, I reported a problem that a customer was having with a particular 3 rd party product that seemed not to work with Visual FoxPro. It was a COM object that could be instantiated via CreateObject. I was quite surprised that Windows guru
Posted by Calvin_Hsia | 1 Comments
Filed under: ,

Very Advanced Debugging tips

While debugging code, it might take very many complicated steps to reproduce an issue. The following applies to debugging both Visual FoxPro and Visual Studio Native code debugging, except where noted. The VFP debugger is modeled after the VS debugger,

Is a process hijacking your machine?

Suppose there is a process on your machine that is hijacking your processor. Perhaps it’s in an infinite loop. Or perhaps you have no idea what a particular process is doing, and you’d like to find out. If you have a debugger installed, like Visual Studio,

Spy on your programs

A user emailed me a question: How can I get the handle often named as "HWnd" of any Visual Foxpro native visual object such as COMMANDBUTTON,SHAPE,EDITBOX,LISTBOX ,etc.? There is a tool called SPY++ that ships with Visual Studio (on my machine, Start

What is a C0000005 crash?

In my blog about Dr. Watson I talked about product crashes. What is an example of a crash? How destructive is it? Here’s a simple example. MyFunction takes a string parameter and calculates its length MyFunction ( char * StringParam) { int nlen;

Dr. Watson: Please send in your error report

I bet you’ve seen dialogs similar to this: We at Microsoft refer to this dialog/technology as Dr. Watson (after the famous Sherlock Holmes assistant). Before Watson, computer users would get the BSOD (The Blue Screen of Death) which would just say

Disappearing Window Contents while dragging the mouse

We have heard a couple reports of strange behavior in Visual FoxPro if you click on a thumb button in a scrollbar, drag it up or down a little, then pause for 6 seconds or so. The contents of the window would disappear, leaving a blank editing window.
 
Page view tracker