Welcome to MSDN Blogs Sign in | Join | Help

Decrypt my World

Cryptography, Security, Debugging and more!

News

  • Any of my posts is supported under any Microsoft standard support program or service. They are provided "AS IS" without warranty of any kind, and confer no rights.

Where are my readers?

Locations of visitors to this page

Favorite Posts

Browse by Tags

All Tags » Debugging   (RSS)
CryptographicException: The data to be decrypted exceeds the maximum for this modulus of 0 bytes
Hi all, Some time ago a customer of mine was getting the following CryptographicException when calling EncryptedXml.DecryptDocument method to decrypt an XmlDocument in their .NET app: [System.Security.Cryptography.CryptographicException] = {" The data Read More...
MANAGED DEBUGGING with WINDBG. Locks
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Breaking on an Exception. Part 2 . LOCKS · We can see threads waiting for managed locks : All managed objects have a syncblock (4 bytes) before their Method Table and properties. It Read More...
MANAGED DEBUGGING with WINDBG. Breaking on an Exception. Part 2
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Breaking on an Exception. Part 1 . BREAKING ON AN EXCEPTION. Part 2 What happens if !PrintException doesn’t return anything, or when we break (i.e. with a breakpoint or manually – Ctrl+Break) Read More...
MANAGED DEBUGGING with WINDBG. Breaking on an Exception. Part 1
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Managed Heap. Part 5 . BREAKING ON AN EXCEPTION. Part 1 We can only break on exceptions when doing live debugging, but many of the commands explained here can be used when doing dump Read More...
MANAGED DEBUGGING with WINDBG. Managed Heap. Part 5
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Managed Heap. Part 4 . MANAGED HEAP. Part 5 · We can troubleshoot Loader Heap issues : An assembly can’t be unloaded while the AppDomain where it was created is still alive. We will Read More...
MANAGED DEBUGGING with WINDBG. Managed Heap. Part 4
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Managed Heap. Part 3 . MANAGED HEAP. Part 4 · We can troubleshoot Heap issues : These are some of the important performance counters we can check with Performance Monitor when having Read More...
MANAGED DEBUGGING with WINDBG. Managed Heap. Part 3
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Managed Heap. Part 2 . MANAGED HEAP. Part 3 · We can take a look to which objects reference which objects in the heap: We may see many objects in the heap that we think should have Read More...
MANAGED DEBUGGING with WINDBG. Managed Heap. Part 2
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Managed Heap. Part 1 . MANAGED HEAP. Part 2 · We can take a look to the objects in the heap : We can see all objects in the heap: 0:004> !DumpHeap Address MT Size 7b463c40 790fd0f0 Read More...
MANAGED DEBUGGING with WINDBG. Managed Heap. Part 1
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Thread Stacks. Part 2 . MANAGED HEAP. Part 1 .NET won’t use the NT Heap . It saves some virtual memory for its own managed heap instead. Objects in the managed heap are part of a Garbage Read More...
MANAGED DEBUGGING with WINDBG. Thread Stacks. Part 2
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Thread Stacks. Part 1 . THREAD STACKS. Part 2 · We can inspect the objects with unmanaged commands : The reference to an object points to the method table (which is a pointer to the Read More...
MANAGED DEBUGGING with WINDBG. Thread Stacks. Part 1
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Threads. Part 2 . THREAD STACKS. Part 1 · We can take a look to the objects in the stack : The CLR is stack-based. All references to objects are in the stack , but objects themselves Read More...
MANAGED DEBUGGING with WINDBG. Threads. Part 2
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Threads. Part 1 . THREADS. Part 2 · We can see all .NET related threads in our process: There are different types of .NET threads : finalizer, GC, debugger, timer, threadpool, primary Read More...
MANAGED DEBUGGING with WINDBG. Threads. Part 1
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Call Stacks. Part 3 . THREADS. Part 1 · We can see all threads in our process: If we reach a breakpoint or break on an exception , WinDbg command prompt shows the ID of the thread which Read More...
MANAGED DEBUGGING with WINDBG. Call Stacks. Part 3
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Call Stacks. Part 2 . CALL STACKS. Part 3 · Let's review previous commands: Let’s see a sample where the debugger broke when “PlayWithArray” raised an exception. We can use the return Read More...
MANAGED DEBUGGING with WINDBG. Call Stacks. Part 2
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Call Stacks. Part 1 . CALL STACKS. Part 2 · We can see the source code of a method in the call stack: First of all, Source Code mode has to be enabled. We’ll need symbols and source Read More...
More Posts Next page »
Page view tracker