   Direct3D9 : (ERROR)
  I'm using Vista SP1, C++2008 Express and DX9 (March 2009).   I am trying to run an XFile application using tiny.x from the DX Samples folder.   Following is the debug output.   Can anyone explain what the error message "Could not create exclusive mode mutex." means, and how to correct whatever is wrong?'XFile1.exe': Loaded 'C:\Role Play\BookCode\Chap06\XFile1\Debug\XFile1.exe', Symbols loaded.'XFile1.exe': Loaded 'C:\Windows\System32\ntdll.dll''XFile1.exe': Loaded 'C:\Windows\System32\kernel32.dll''XFile1.exe': Loaded 'C:\Windows\System32\d3dxof.dll''XFile1.exe': Loaded 'C:\Windows\System32\msvcrt.dll''XFile1.exe': Loaded 'C:\Windows\System32\winmm.dll''XFile1.exe': Loaded 'C:\Windows\System32\user32.dll''XFile1.exe': Loaded 'C:\Windows\System32\gdi32.dll''XFile1.exe': Loaded 'C:\Windows\System32\advapi32.dll''XFile1.exe': Loaded 'C:\Windows\System32\rpcrt4.dll''XFile1.exe': Loaded 'C:\Windows\System32\ole32.dll''XFile1.exe': Loaded 'C:\Windows\System32\oleaut32.dll''XFile1.exe': Loaded 'C:\Windows\System32\oleacc.dll''XFile1.exe': Loaded 'C:\Windows\System32\d3d9.dll''XFile1.exe': Loaded 'C:\Windows\System32\version.dll''XFile1.exe': Loaded 'C:\Windows\System32\d3d8thk.dll''XFile1.exe': Loaded 'C:\Windows\System32\dwmapi.dll''XFile1.exe': Loaded 'C:\Windows\System32\D3DX9_41.dll''XFile1.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none_bb1f6aa1308c35eb\msvcr90d.dll''XFile1.exe': Loaded 'C:\Windows\System32\imm32.dll''XFile1.exe': Loaded 'C:\Windows\System32\msctf.dll''XFile1.exe': Loaded 'C:\Windows\System32\lpk.dll''XFile1.exe': Loaded 'C:\Windows\System32\usp10.dll''XFile1.exe': Loaded 'C:\Program Files\Google\Google Desktop Search\GoogleDesktopNetwork3.dll''XFile1.exe': Loaded 'C:\Windows\System32\ws2_32.dll''XFile1.exe': Loaded 'C:\Windows\System32\nsi.dll''XFile1.exe': Loaded 'C:\Windows\System32\ntmarta.dll''XFile1.exe': Loaded 'C:\Windows\System32\Wldap32.dll''XFile1.exe': Loaded 'C:\Windows\System32\psapi.dll''XFile1.exe': Loaded 'C:\Windows\System32\samlib.dll''XFile1.exe': Unloaded 'C:\Program Files\Google\Google Desktop Search\GoogleDesktopNetwork3.dll''XFile1.exe': Loaded 'C:\Windows\System32\uxtheme.dll''XFile1.exe': Loaded 'C:\Windows\System32\d3d9d.dll''XFile1.exe': Loaded 'C:\Windows\System32\d3dx9d_33.dll'Direct3D9: :====> ENTER: DLLMAIN(0267e6e0): Process Attach: 00001414, tid=00001660Direct3D9: (ERROR) :Could not create exclusive mode mutex. exiting'XFile1.exe': Unloaded 'C:\Windows\System32\d3d9d.dll''XFile1.exe': Unloaded 'C:\Windows\System32\d3dx9d_33.dll''XFile1.exe': Loaded 'C:\Windows\System32\nvd3dum.dll'The program '[5140] XFile1.exe: Native' has exited with code 0 (0x0).   
  It means you code is trying to create a mutex in exclusive mode and it failed.Informative eh?You speak of Xfile.exe as if we all know what it is. I've never heard of such a thing. Give more context. from your output, I assumed it is some code that came with a book.A mutex is a multithreading concept.You'd have to look at the code for where they are creating mutexes and prived more information... that is if the error message was created by the application. I don't know if you have some sort of messaging direct from DX9, I haven't used it in ages. If it is, then look in the code where DX9 is "capturing the devices"If all else fails, 1) search the code for the output message string2) set break points in your code and start stepping through until you get the ouput message.;  Thanks Brekehan.I should have said an application using .X files - sorry for the confusion.I have checked a couple of programs where the message is generated and both cases involve device capture.   The code where the error occurs is:Program 1 - hr = DXUTFindValidDeviceSettings( &deviceSettings, &deviceSettings, &matchOptions );Program 2 - if((g_pD3D = Direct3DCreate9(D3D_SDK_VERSION)) == NULLIn neither case does the program exit with this error; in the first case it executes as expected and in the second exits later in the coding when an enumeration fails (down to me!).I guess its not important, tho' I don't understand why its happening.   ;  Interesting, I've not seen that before. Google has a few results, although no actual answers unfortunately.I'd make sure you have the latest drivers, it sounds like a driver issue to me.   