Click here to Skip to main content
15,884,298 members

Articles by Mattias Högström (Articles: 13)

Articles: 13

RSS Feed

Average article rating: 4.84

Desktop Programming
WPF
2 Jun 2011   Updated: 30 Apr 2012   Rating: 4.75/5    Votes: 4   Popularity: 2.86
Licence: Ms-PL    Views: 25,480     Bookmarked: 24   Downloaded: 625
Please Sign up or sign in to vote.
A WPF control that deobfuscates the callstack on the fly
General Programming
Debugging
22 Apr 2012   Updated: 22 Apr 2012   Rating: 4.90/5    Votes: 14   Popularity: 5.62
Licence: Ms-PL    Views: 41,703     Bookmarked: 30   Downloaded: 1,381
Please Sign up or sign in to vote.
A native stackwalk funtion like Stackwalk64 cannot handle mixed-mode stacks, since managed code does not use the stack in the same way as native code does. There is an API called IDebugClient, that does walk a mixed-mode stack correctly, which we will explore.
Programming Languages
C#
9 Jul 2012   Updated: 11 Jul 2012   Rating: 4.86/5    Votes: 15   Popularity: 5.72
Licence: Ms-PL    Views: 51,375     Bookmarked: 48   Downloaded: 1,164
Please Sign up or sign in to vote.
.NET apps are run by the .NET runtime. There exists an unmanaged API which allows you to run apps under a customized runtime. This API lets you strengthen security, provide a different deployment strategy, add framework logging, provide your own memory management implementation, and sandbox an appli
5 Aug 2013   Updated: 6 Aug 2013   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: Ms-PL    Views: 41,746     Bookmarked: 20   Downloaded: 1,320
Please Sign up or sign in to vote.
Event tracing for Windows is a super efficient log technology, alas logs are still flat raw logs. EtwDataViewer is a prototype for adding browsability, analysis, and a visual tree representation.
1 Apr 2013   Updated: 6 Aug 2013   Rating: 4.90/5    Votes: 14   Popularity: 5.61
Licence: Ms-PL    Views: 98,375     Bookmarked: 41   Downloaded: 3,508
Please Sign up or sign in to vote.
ETW is a super fast way to collect runtime data from your app. We will look how we can insert intelligent data points, collect data, and analyze data logs. This permits supervision, anomaly detection, and system optimization.
C++
24 Apr 2011   Updated: 1 May 2011   Rating: 4.93/5    Votes: 16   Popularity: 5.93
Licence: Ms-PL    Views: 78,347     Bookmarked: 43   Downloaded: 1,758
Please Sign up or sign in to vote.
Take advantage of the memory page access flag, and set a new kind of breakpoint
C++/CLI
5 Jul 2012   Updated: 10 Jul 2012   Rating: 4.89/5    Votes: 35   Popularity: 7.55
Licence: Ms-PL    Views: 76,584     Bookmarked: 76   Downloaded: 2,648
Please Sign up or sign in to vote.
We go through the basics and create a simple AppDomainManager.
27 Apr 2011   Updated: 27 Apr 2011   Rating: 4.67/5    Votes: 5   Popularity: 3.26
Licence: Ms-PL    Views: 33,023     Bookmarked: 13   Downloaded: 467
Please Sign up or sign in to vote.
Develop Windbg extensions in Visual Studio and call .NET libraries
F#
2 Jan 2013   Updated: 17 Jan 2013   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: Ms-PL    Views: 38,150     Bookmarked: 13   Downloaded: 1,276
Please Sign up or sign in to vote.
Building a viewer and analyzing profiling data reports from vsperfcmd.
MSIL
4 Sep 2012   Updated: 27 Sep 2012   Rating: 4.56/5    Votes: 15   Popularity: 5.36
Licence: Ms-PL    Views: 62,016     Bookmarked: 46   Downloaded: 1,373
Please Sign up or sign in to vote.
Runtime IL-Rewriting can be used to add behavior such as logging to applications, or redirect calls from one API to another. This article and accompanying source code explains how to substitute a method call at runtime.
Web Development
HTML
24 Apr 2014   Updated: 24 Apr 2014   Rating: 4.74/5    Votes: 26   Popularity: 6.71
Licence: Ms-PL    Views: 63,364     Bookmarked: 45   Downloaded: 4,499
Please Sign up or sign in to vote.
Learn the basics of how to draw with GDI on screen and to printer. We will look closer at the different GDI map modes, and how to do proper adjustments when you need to send the output to a printer. We will also create a metafile and load it back in again.
26 May 2014   Updated: 8 Aug 2014   Rating: 4.87/5    Votes: 73   Popularity: 9.04
Licence: Ms-PL    Views: 98,514     Bookmarked: 135   Downloaded: 1,823
Please Sign up or sign in to vote.
Learn how to export functions from a DLL, and obtain full language independence
13 May 2012   Updated: 31 Jul 2014   Rating: 4.90/5    Votes: 19   Popularity: 6.15
Licence: Ms-PL    Views: 64,023     Bookmarked: 41   Downloaded: 1,874
Please Sign up or sign in to vote.
Walking a native and a managed callstack is fairly easy. Walking a mixed-mode callstack is much much harder. Existing documentation is truly minimal. I hope this article and its sample profiler can shed some light in this area.

Average blogs rating:

No blogs have been submitted.

Average tips rating:

No tips have been posted.

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.
Architect Visma Software AB
Sweden Sweden
Mattias works at Visma, a leading Nordic ERP solution provider. He has good knowledge in C++/.Net development, test tool development, and debugging. His great passion is memory dump analysis. He likes giving talks and courses.