Quote Originally Posted by Rojekti
Hmm. Doesn't help. It's always the same number; "1077.00<something>...".. And the error shows even when I turn the whole program off; it doesn't do anything, and I shut it down.

Hmm. Weird..
Why don't you debug your program to see exactly where the problem occurs? Also, any reason you need to use double-precision floating point numbers? AFAIK, using double-precision with Direct3D reduces the performance.