cas1993per / bizhawk

Automatically exported from code.google.com/p/bizhawk
2 stars 0 forks source link

Program crashes when USB joypad is disconnected #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start Bizhawk with an Xbox 360 controller connected.
2. While the program is running, disconnect the controller.
3. Wait one second or so.

What is the expected output? What do you see instead?
Expected output: The emulator should (obviously) be no longer able to accept 
input from that device.
Actual output: A generic "BizHawk.MultiClient has stopped working" message box 
appears, and BizHawk closes once it is dismissed.

What version of the product are you using? On what operating system?
BizHawk v1.0 (March 3, 2012)
Windows 7 Professional x64
Standard Xbox 360 Wireless Controller

Please provide any additional information below.
I don't know if this issue is specific to this controller, or to game 
controllers in general. Controller was disconnected by removing the battery 
pack.

Original issue reported on code.google.com by thek...@gmail.com on 4 Mar 2012 at 5:57

GoogleCodeExporter commented 9 years ago
Changed the title.  Bizhawk crashes when you unplug any USB controller.

Original comment by adeli...@tasvideos.org on 30 May 2012 at 1:13

GoogleCodeExporter commented 9 years ago
I discovered this issue way back, but I couldn't identify a way to fix it.
It appears to be an issue with SlimDX.

The program hard-crashes. It doesn't throw an exception which can be caught or 
handled.  I attempted to 'check if the device was connected' before polling it, 
but it still blows up.

If there is an API that you need to call to handle this, I'm not sure what it 
is.

I guess some potential paths forward would be to 1) Check on SlimDX forums 2) 
Update to latest version of SlimDX, 3) Try to utilize a different library for 
controller input.

Original comment by beir...@gmail.com on 2 Jun 2012 at 2:42

GoogleCodeExporter commented 9 years ago
Fixed

Original comment by adeli...@tasvideos.org on 20 Oct 2012 at 10:45