   DirectX debug output
  Hi. Some times, when i run my code, directx fails with CreateTexture. Error E_OUTOFMEMORY. But it not happens constantly, it can happens two times in a row, or after 10 success tryes. All the CreateTexture function calls are called in the loading thread with THREAD_PRIORITY_ABOVE_NORMAL. Main thread just outputs the loading progrss and it's priority is set to NORMAL. After loading, loading thread terminated. It's a basic description how it work, but sometimes directX, as i say before, fails with CreateTexture. DirectX doesn't output any additional info in "output window". Just fails and all.So, the question: it is possible to get more extended info (or some debug output) for directx functions? How to debug the directx functions at all ? May be some tools ?P.s. it happens with different video cards and different systems. (I mean it's not the hardware problem.)P.s. all textures takes in the memory about 5-7 mb. My current video card (ATI x800) has 256 RAM.Thanks!   
  So, just to clarify - are you access/using Direct3D from multiple threads? or are you just using a worker thread to do resource loading/formatting?If the former, are you specifying D3DCREATE_MULTITHREADED in your CreateDevice() call?I'm not entirely sure why it would cause the error you're seeing, but (ab)using multithreading is a wonderful source of the most obscure errors [lol]hthJack   ;  Yes, while textures are loading, i'm showing the progress bar. So it accessing the directx from the two threads.Thanks for D3DCREATE_MULTITHREADED, i'll check this out.P.s. all textures for prgress bar (loader) already preloaded.   