Crashes on start-up
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at SharpDX.DirectInput.DirectInput.EnumDevices(Int32 arg0, FunctionCallback arg1, IntPtr arg2, DeviceEnumerationFlags arg3)
at SharpDX.DirectInput.DirectInput.GetDevices(DeviceType deviceType, DeviceEnumerationFlags deviceEnumFlags)
at ()
at LaunchBox.GameControllerHandler.GetCurrentDevices()
at BigBox.Data.OptionsListItem..ctor(String name, Action1 saveAction, Action
1 loadAction, Func1 getValues)
at ()
at BigBox.Data.OptionsPages.get_Controller()
at BigBox.ViewModels.OptionsViewModel..ctor(MainViewModel mainViewModel)
at BigBox.ViewModels.MainViewModel..ctor()
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at Caliburn.Micro.BootstrapperBase.DisplayRootViewFor(Type viewModelType, IDictionary
2 settings)
at (Bootstrapper , Object , StartupEventArgs )
at BigBox.Bootstrapper.OnStartup(Object sender, StartupEventArgs e)
at System.Windows.Application.OnStartup(StartupEventArgs e)
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)