I know, but how can you create an infinite loop by just calling a sub, which doesn't even get started? A breakpoint on the first line of the sub is never reached.

It seems to be an issue with the version of DirectX DLL I am using, but it still seems wrong that the IDE cannot give me an error message, just a complete lock-up.