Salut
Je developpe une appli en c# qui utilise un joystick et j'ai un problème quand je fait cet appel:
mon exception:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 DeviceList dl = Manager.GetDevices(DeviceType.Joystick, EnumDevicesFlags.AttachedOnly);
Je vois pas d'où ca peut venir.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 Managed Debugging Assistant 'LoaderLock' has detected a problem in 'C:\Documents and Settings\demonstration\Mes documents\Visual Studio 2005\Projects\InterfaceRoburoc\InterfaceRoburoc\bin\Debug\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.
Merci pour votre aide.
Partager