Crash when creating a graphics device on the 2nd (or 3rd) open sheet; this was a problem with not releasing a COM smart pointer.