   Fail to load .x file in another thread
  hi:   i want to load the .x file in another thread , but sometimes it loads nothing. So my demo crashed.   is there anything i should be aware of during the loading ??? Thanks !!!   
Quote:Original post by CodeBoyCjyhi:   i want to load the .x file in another thread , but sometimes it loads nothing. So my demo crashed.   is there anything i should be aware of during the loading ???    Thanks !!!Do you have activated the MULTITHREAD flag if in DirectX9?   ;  do u mean the RumTime Library setting in the property of the solution??i'm using mfc , so it's set Multi-threaded DLL /MD   ;Quote:Original post by CodeBoyCjydo u mean the RumTime Library setting in the property of the solution??i'm using mfc , so it's set Multi-threaded DLL /MDNo, you have to specify D3DCREATE_MULTITHREADED as one of the D3DCREATE flags to IDirect3D9::CreateDevice if you want to do stuff from multiple threads.Note that this will be pretty poor for performance, so it's usually a rather bad idea (And using a multithreaded device has other issues).This is assuming C++ / DX9 of course.   