Tag: C++

  • Faster Compiling: Visual Studio Unity (Jumbo) Builds

    Unity/Jumbo builds are a way of speeding up C/C++ compilation by compiling multiple c/cpp files as a single object file. Speed improvements can come from not having to re-parse and compile shared headers. Even in projects that use pre-compiled headers, there is an overhead of processing the pre-compiled header which can be avoided with Unity/Jumbo…

  • C++ unique/shared ptr custom deleters

    I’ve recently found the need for a custom deleter function attached to smart pointers in C++ and I found there are a number of different ways to implement this. I’ll touch on the advantages/disadvantages of the different ways to use custom deleters and the difference between unique and shared ptr. std::unique_ptr: The type of the…

  • [C#] HttpWebRequest not sending Cookies on Windows Phone

    Had a similar problem to Jeroen Swart to do with Cookies in Windows Phone as he mentioned in his blog post here. Basically identical C# code to make a HttpWebRequest with a few cookies would work in a simple desktop app but no cookies would be sent at all in Windows Phone. My code to…

  • Windows Phone C#: “Layout cycle detected. Layout could not complete.” on LongListSelector Fix

    Came across a very weird problem today that has occurred on my application Steam Live which I’ve never come across before… On a certain Steam Profile I’d get a crash with the following message: “Layout cycle detected.  Layout could not complete.” After a lot of searching, confusion and everything else I’ve managed to find a…

  • Windows Phone 8.1 DirectX Sample Landscape mode broken / rotation doesn’t work.

    The Problem: When the phone is in landscape mode, the rendered area isn’t rotated on screen! As you can see, the image on the right is when it is in portrait mode, the one below is when in landscape. The problem is caused by the following code in DeviceResources.cpp: Since the window size being created is…