Thursday 20 January 2011

Microsoft Visual Studio 2010 - less good for hardcore coders

In my last position I worked extensively with Microsoft Visual Studio 2010 and generally found it to be a good system. Until receiently...

The short version:

When running in debug mode the system changes pointer values at runtime.

This mostly will go unnoticed because the debugging IDE reports the correct values and even does the correct maths. So if you try doing the following:

((size_t)(&FunctionOne)) - ((size_t)(&FunctionTwo))

If you look at the result in the debugging IDE you might get (real example):

((size_t)(0x011ee0e0)) - ((size_t)(&0x011ee050)) = 0x00000090

However, if you try an apply this in your running code you get instead:

((size_t)(0x011d132f)) - ((size_t)(0x011d137a)) = 0xffffffb5


Now, I get what its trying to do here (at least I think I might) its actually adding a call stub to the functions which probably adds a bunch of debug checks to try and help out a poor developer.

Whats majorly annoying is:
  1. It does not translate the addresses consistantly! So (like in the above example) addresses which where previously ordered top to bottom are transposed to the opposite effective order.  
  2. If you attempted to perform an in memory transfer of this functions data you would copy garbage (or at least not the function proper).
  3. Maths carried out on pointers is completely meaningless (e.g. deriving the length by the difference between two pointers is not possible, though arguably this is bad practice anyway).
  4. Confusing because the IDE reports the correct values, addresses and maths (e.g. results in IDE will not match results of performing exact same math in code).
DoggyDude96a

Saturday 15 January 2011

Left feeling very negatively towards Disney and Pixar

First off, I think these two companies are great. Producing some fabulous stuff.

What I am left spitting bricks over is their damn, up their own arse self advertising at the beginning of their DVD's.

Firstly, I've bought your damn movie, don't force me to watch promotions of your other movies! >.<

Secondly, and this is the biggest annoyance, I got the Toy Story collection as a Christmas present and on every damn DVD theres a spoiler for the third movie and on the second DVD its PART OF THE INTRO TO THE DVD!

Oh my god! F**king annoying.

So, my "Arse Company of the Day award" suprisingly goes to Pixar and Disney DVD division.