cdb

I'm looking for links to cdb/windbg + .net help.

I just started using cdb and I love it! I've found and bookmarked a few interesting articles I've found on using cdb, but I'd love to see other peoples resources. What sites do you use to extract the max usefulness from cdb (windbg) ...

Does adplus/cdb crash dumps still work on Vista 64 Ultimate?

I am doing some research on a asp.net bug. I tried to get adplus to give me a crash dump file from IIS crashing. I have done this in the past on XP machines, but with my current Vista Ultimate setup - the adplus script doesn't spawn the 2nd window with CDB running. I am running the adplus cmd window with admin priviledges. Used Tess'...

does cdb/windbg have an equivalent to autoexp.dat?

I'd like to change the way some types are displayed using either 'dt' or '??' in a manner similar to how you can do that with autoexp.dat. Is there a way to do this? For example, I have a structure something like this: struct Foo { union Bar { int a; void *p; } b; }; And I've got an array of a few hundred o...

How to avoid "(null)" StackTrace in DPH_BLOCK_INFORMATION ?

I'm having a blast tracking down some heap corruption. I've enabled standard page heap verification with gflags /p /enable myprogram.exe and this succeeds in confirming the corruption: =========================================================== VERIFIER STOP 00000008: pid 0x1040: corrupted suffix pattern 10C61000 : Heap handle ...

cdb and windbg unable to load MiniDumps, but VS 2008 loads them fine

I am trying to build some automated crash dump analysis, but I cannot get cdb or windbg to load my crash dumps. They load just fine in VS 2008. When I run dumpchk.exe on the file, I get: Loading Dump File [c:\devx86\temp\ErrorDump.mdmp] User Mini Dump File: Only registers, stack and portions of memory are available ERROR: Memory rang...

Python integer to read-only buffer

I am using cdb for a constant database in python. I would like to associate integer id's with some strings, and I would like to avoid storing each of these integer id's as strings, and instead store them as an integer. cdb though is looking for either a string or a read only buffer. Is there a way that I can store these keys as intege...

Debugging the dreaded 'Application has failed to initialize' error

I occasionally run into this error when trying run an executable I've built on windows, but I have no idea what causes it or how to fix it. With the normal MSVC debugger, it just pops up a dialog and exits with no chance to do anything or look at anything. I've managed to at least catch something and get a stack trace with the Microsof...

C++ using cdb_read returns extra characters on some reads

Hi All, I am using the following function to loop through a couple of open CDB hash tables. Sometimes the value for a given key is returned along with an additional character (specifically a CTRL-P (a DLE character/0x16/0o020)). I have checked the cdb key/value pairs with a couple of different utilities and none of them show any addit...

Windbg with xp embedded, ntdll.dll symbols fail, other symbols affected?

I am using windbg with xp embedded. Attempting to fetch the operating system symbols fails with the message "Symbol file could not be found. Defaulted to export symbols for ntdll.dll". (Is this typical for xp embedded???) I have no problem locating and loading symbols and source for my own code. However stepping through the code suggest...

Read and edit .cdb files (Pocket Access) in C#

I need to make a program that can read and edit certain .cdb files (Microsoft Pocket Accesss files, created and used by legacy accounting mobile application). I'd like to do that in C#, using VS2008. It would be great to be able to create both a desktop application (.Net) and a mobile application (.Net CF), but just one of them is perfe...