I keep getting an Unknow runtime error when i get to this line of code: device = new Device(0, DeviceType.Hardware, this, CreateFlags.SoftwareVertexProcessing, presentParams);