Issue resolved after writing the same test file using C++. With the C++ version the test app threw an exception specifying MSVCP71.dll was not found.
This application has failed to start because MSVCP71.dll was not found.
Re-installing the application may fix this problem.
The specific dll really isn't the point though. The point is that this type of issue could probably be resolved easily by following this approach.