Skip to content

ArgumentOutOfRangeException while patching with multiple mods targeting different assemblies #20

@fireundubh

Description

@fireundubh
  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions