Hi all,
Last month I decided to play a bit with C++. I needed some real project to practice writing on this language and implement the learned features and functionality. So I decided to totally rewrite my .NETDebuggingEnabler tool, built on .NET, which weren't good enough and didn't recognized modules in case of WOW64 processes.
//here I should place a header in future.
My own or stolen ideas, approaches, issues and tips from worlds of .NET, debugging and Sitecore. or else.
Tuesday, October 22, 2013
Wednesday, October 16, 2013
Using Windows Task Manager to collect memory dumps
Introduction
When we're asked to collect memory dump files, the first thing we remember is Windows Task Manager (WTM later). This is right and I would like to describe facilities of this tool in more detail.
Monday, October 14, 2013
What is windows smooth-scroll list boxes setting
Story about setting
About one week ago I tried to build my own C++ application with GUI. The layout of application was pretty straightforward, it contained one combobox, one checkedListbox, a few checkboxes and buttons. I decided to use wxWidgets for GUI part...Memory dump files modes
Introduction
Sometimes when we are capturing memory dump file, diagnostic tools ask us which kind of memory dump file we prefer. Usually we have two available options:- Full memory dumps
- Minidumps
Another question is collecting memory dump files for x86 processes on x64 environment.
How to identify process of appropriate Sitecore instance
Problem
Usually during diagnostic measurements or procedures we have to identify which system process corresponds to our Sitecore instance. Fortunately we know that all ASP.NET processes are named w3wp and this makes life simpler. But when we have a few instances run simultaneously, it become a tricky task to figure out what exact one we should pick.Each process has its unique assigned during the process creation. Almost all the diagnostics tools show process name along with process ID (PID later) so it would be enough to know the exact PID to solve this task.
This article will demonstrate a few possible approaches.
Monday, November 12, 2012
using Reflection & Delegates to call the private parts of product
Short time ago I faced with a case when I need to call the private method. There are a lot of people who forget to make some methods public or just prefer internal. There are also other ones, who like to use the "private" instead of "protected". I don't want to write a lot about all these people because their places in hell have been already prepared.
So I derived from a parent class, overridden the virtual method and faced with the following issue: the overridden method calls private ones. I have 2 obvious ways how to handle this:
So I derived from a parent class, overridden the virtual method and faced with the following issue: the overridden method calls private ones. I have 2 obvious ways how to handle this:
- Bring the implementation of the private method into my class;
- Use the Reflection.
The #1 approach is bad because... because I want to write you about the Reflection :)
actually I hope you know why it's unacceptable.
Friday, November 9, 2012
Subscribe to:
Posts (Atom)