Sign In
Kristoffer's tidbits
Bits and pieces of useful information by Kristoffer Henriksson
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
.NET
Bing Maps
Interesting
Javascript performance
Office observations
Pages
Performance
Streetside
Virtual Earth
Virtual Earth 3D
Virtual Earth 3D Plugins
Visual Studio
Website Performance
Windbg
Windows 8
Xaml
Archive
Archives
March 2012
(4)
April 2010
(1)
February 2010
(1)
January 2010
(1)
November 2009
(1)
February 2009
(1)
May 2008
(1)
December 2007
(1)
November 2007
(5)
July 2007
(1)
June 2007
(2)
April 2007
(2)
March 2007
(1)
February 2007
(1)
January 2007
(4)
December 2006
(3)
MSDN Blogs
>
Kristoffer's tidbits
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Kristoffer's tidbits
Calling WinRT functions from low level C++
Posted
2 months ago
by
Kristoffer Henriksson
3
Comments
The high level projection available in C++ targeting WinRT make working with WinRT from C++ a much easier task. It handles error reporting, reference counting, string conversions etc for you. As an example let's consider the following high level C++ code...
Kristoffer's tidbits
A concise history of the Bing Maps Windows 8 Map control.
Posted
2 months ago
by
Kristoffer Henriksson
0
Comments
The Windows 8 Bing map XAML control (as opposed to the javascript control which is an entirely different beast) has a slightly different API when compared to earlier Bing Map XAML controls. Previous XAML controls have all been written in managed code...
Kristoffer's tidbits
Working with the Bing Maps Metro style map in XAML
Posted
2 months ago
by
Kristoffer Henriksson
0
Comments
Win 8 xaml unfortunately does not supporting anything similar to TypeConverters to convert from strings to objects so some properties like Location end up being more verbose and less intuitive than in previous versions of Bing Maps xaml-compatible controls...
Kristoffer's tidbits
Using Bing Maps in a Windows 8 Metro style app
Posted
2 months ago
by
Kristoffer Henriksson
0
Comments
The recently released Bing Maps controls for Windows 8 (available in the Visual Studio Gallery ) actually contains two separate map controls to support the two types of Windows 8 applications. One is a port of our existing Javascript map control and is...
Kristoffer's tidbits
Shrinking .NET assemblies by removing unnecessary attributes
Posted
over 2 years ago
by
Kristoffer Henriksson
0
Comments
.NET assemblies contain a rich set of metadata for use by the run time, debugger, and compiler. This information is stored in the assembly whether it will be used or not which for certain types of shipping assemblies is unnecessary. Using CCI we can remove these attributes without affecting the rest of the code....
Kristoffer's tidbits
Streetside photos is live!
Posted
over 2 years ago
by
Kristoffer Henriksson
0
Comments
Bing Maps just shipped a tech preview of Streetside photos which overlays Flickr photos on Streetside to show where the photos were taken. The team worked hard to get it out the door and we're proud to share it with the rest of the world. Check it out...
Kristoffer's tidbits
Streetside smoove
Posted
over 2 years ago
by
Kristoffer Henriksson
0
Comments
Bing Maps Streetside just released a minor update that allows you to smoothly glide through streets like a first-person shooter or pacman. Try it out yourself, just hold down the Up key and turn with Left and Right. Faster connections give a more pleasant...
Kristoffer's tidbits
It's 10 pm, do you know what your JITter is doing?
Posted
over 3 years ago
by
Kristoffer Henriksson
0
Comments
Ever have that awkward feeling like you don't know what actually gets executed as a result of your managed code? Visual Studio allows you to inspect the JITted code easily but does require a few tweaks first: First set your project to build in Release...
Kristoffer's tidbits
OutOfMemoryException is special
Posted
over 3 years ago
by
Kristoffer Henriksson
0
Comments
Consider the humble OutOfMemoryException and its most common usage. If it is thrown when the system is well and truly out of memory then how would the system allocate enough memory to create a new instance of OutOfMemoryException? Luckily this problem...
Kristoffer's tidbits
Troubleshooting a failed Virtual Earth 3D installation
Posted
over 4 years ago
by
Kristoffer Henriksson
0
Comments
The Virtual Earth 3D setup program is a small executable that downloads and installs pre-requisites if they're not already installed and then the correct MSI for your OS flavor (32 or 64 bit). The pre-requisites are Windows Imaging Components and .NET...
Kristoffer's tidbits
How does Virtual Earth 3D find and load plugins?
Posted
over 5 years ago
by
Kristoffer Henriksson
0
Comments
On startup VE3D looks in the Plugins folder of the install directory (ProgramFiles\Virtual Earth 3D) and iterates through the assemblies in each subfolder of Plugins. A plugin named Sample would install itself as C:\Program Files\Virtual Earth 3D\Plugins...
Kristoffer's tidbits
Using a plugin to add a billboard to Virtual Earth 3D
Posted
over 5 years ago
by
Kristoffer Henriksson
0
Comments
To add objects to the VE3D world we need to create our own actor that knows how to render itself. Actors descend from Microsoft.MapPoint.Rendering3D.Steps.Actors. Actor and must override the Render method. When it comes time to render a frame, all...
Kristoffer's tidbits
Creating a Hello World plugin for Virtual Earth 3D
Posted
over 5 years ago
by
Kristoffer Henriksson
0
Comments
With latest release of the Virtual Earth 3D release we now support loading plugins to perform additional functionality not implemented in the main product. Two new features of the release are even implemented as plugins (bird's eye photos and user created...
Kristoffer's tidbits
Is your e-mail going unanswered?
Posted
over 5 years ago
by
Kristoffer Henriksson
1
Comments
As a general rule the chance of your e-mail getting a response is inversely proportional to the number of people on the To and Cc lines. Let's take an example: You e-mail Bob a question. Bob now feels directly responsible for your question and promptly...
Kristoffer's tidbits
Virtual Earth update
Posted
over 5 years ago
by
Kristoffer Henriksson
0
Comments
Virtual Earth released a new version this afternoon; read about the new features on the Virtual Earth blog .
Kristoffer's tidbits
Visual Studio Tip: Examining long strings while debugging
Posted
over 5 years ago
by
Kristoffer Henriksson
0
Comments
Long strings can be a pain to examine in Visual Studio while you're debugging but in .NET projects you can easily write these to a file on the fly. If for example we want to examine the contents of string s , open up the Immediate Window ( Ctrl+I ) and...
Kristoffer's tidbits
Navigate large solutions in Visual Studio quicker
Posted
over 5 years ago
by
Kristoffer Henriksson
0
Comments
The one Visual Studio tip that everyone should know is how to quickly open a file in a large solution without having to remember which folder or project it's in. Press Ctrl+Alt+A to open up the Command Window, then type open and the first few letters...
Kristoffer's tidbits
Javascript prototype versus closure execution speed
Posted
over 5 years ago
by
Kristoffer Henriksson
3
Comments
When Javascript execution speed matters consider using prototype instead of closures where possible. Even for a small closure the difference can be noticable when called hundreds of times. Consider the following example that implements a Pixel object...
Kristoffer's tidbits
Debugging memory usage in managed code using Windbg
Posted
over 5 years ago
by
Kristoffer Henriksson
1
Comments
Windbg, is there anything it can't do? CLR Profiler is great for getting an overview of memory allocations and usage for managed applications but it doesn't work for very large applications and can't be attached after the application has been running...
Kristoffer's tidbits
Debugging lock issues in managed code using Windbg
Posted
over 5 years ago
by
Kristoffer Henriksson
0
Comments
Windbg can be helpful for locking lock issues in managed code that seem to only happen on client machines when the moon is full and the stars are aligned just right. Windbg is a minimal installation and with managed code doesn't require debug symbols...
Kristoffer's tidbits
Debugging exceptions in managed code using Windbg
Posted
over 5 years ago
by
Kristoffer Henriksson
2
Comments
By default Windbg will break for access violations (or null reference exceptions as they're called in managed code). To get Windbg to break for managed exceptions use the sxe command. 0:004> sxe clr 0:004> g A little while later our program generates...
Kristoffer's tidbits
Setting a breakpoint in managed code using Windbg
Posted
over 5 years ago
by
Kristoffer Henriksson
2
Comments
One of the great features of managed code is getting call stacks and proper class and member function names without debug symbols. We can examine the methods of a class and set breakpoints based on name. To see the methods on an object in Windbg we first...
Kristoffer's tidbits
Getting started with Windbg and managed code
Posted
over 6 years ago
by
Kristoffer Henriksson
1
Comments
Windbg (or wind bag as my friend calls it) is my one stop shop for almost everything debugging related. It's great for finding issues that only happen on a client machine and you don't want a full blown Visual Studio installation mucking up your repro...
Kristoffer's tidbits
Loading website images in parallel
Posted
over 6 years ago
by
Kristoffer Henriksson
5
Comments
By default web browsers will only open 2 simultaneous connections to a named website to be a good client. If you're loading several images this means you may hamstring your bandwidth usage and make your website load slower. Take the following HTML source...
Kristoffer's tidbits
Loading Javascript files in parallel
Posted
over 6 years ago
by
Kristoffer Henriksson
8
Comments
You've got your website all set up but are experiencing slow load times for some customers, especially on slower connections. One possible cause is inefficient network usage because of serialized loading of external Javascript files. Static links in <head>...
Page 1 of 1 (25 items)