Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgumentOutOfRangeException while patching with multiple mods targeting different assemblies #20

Open
fireundubh opened this issue Nov 29, 2018 · 0 comments

Comments

@fireundubh
Copy link

  1. I created a second patch DLL that patches a different second assembly.
  2. I added that DLL in the GUI for a total of two patch DLLs.
  3. When I execute a Test Run, patching completes successfully for the first DLL, but when patching tries to start for the second, the following exception occurs.

If I remove one of the two DLLs, patching completes successfully.

Exception details

System.ArgumentOutOfRangeException: Value of '4' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum'.
Parameter name: Value
   at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
   at System.Windows.Forms.Control.Invoke(Delegate method)
   at PatchworkLauncher.GuiBindings.<>c__DisplayClass0_0`2.<Bind>b__0(Action act)
   at Patchwork.Utility.Binding.DispatchingBindable`1.set_Value(T value)
   at Patchwork.Utility.Binding.Binding`1.OnChanged(IBindable`1 changedBinding)
   at System.Action`1.Invoke(T obj)
   at Patchwork.Utility.Binding.BindableBase`1.NotifyChange()
   at Patchwork.Utility.Binding.VariableBindable`1.set_Value(T value)
   at PatchworkLauncher.LaunchManager.ApplyInstructions(IEnumerable`1 patchGroups, ProgressObject po)
   at PatchworkLauncher.LaunchManager.<>c__DisplayClass46_1.<Command_Patch>b__0()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at PatchworkLauncher.LaunchManager.<Command_Patch>d__46.MoveNext()

Screenshot

2018-11-28 17_54_08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant