Chalut
Ben voila je développe une appli avec un joystick et j'utilise direct input et j'ai un problème à l'execution sur cette instruction:
Code :
- DeviceList dl = Manager.GetDevices(DeviceType.Joystick, EnumDevicesFlags.AttachedOnly);
|
mon eception:
Code :
- Managed Debugging Assistant 'LoaderLock' has detected a problem in 'C:\Documents and Settings\demonstration\Mes documents\Visual Studio 2005\Projects\InterfaceRoburoc\InterfaceRoburoc\bin\Release\InterfaceRoburoc.vshost.exe'.
- Additional Information: DLL 'C:\WINDOWS\assembly\GAC\Microsoft.DirectX\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang.
|
J'ai essayé en mode debug et release mais toujours le meme problème.
Qui a déja utilisé un joystick en c#???
Qui voit d'ou peut venir mon problème???????
Merki.