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

Can't load gen 2 savegame when one is already opened #1082

Closed
suloku opened this issue Apr 21, 2017 · 1 comment
Closed

Can't load gen 2 savegame when one is already opened #1082

suloku opened this issue Apr 21, 2017 · 1 comment

Comments

@suloku
Copy link
Contributor

suloku commented Apr 21, 2017

When a gen 2 savegame is already loaded in pkhex, attempting to load a different one (or reload the same one) results in the following error:

Exception Details:
System.ArgumentOutOfRangeException: InvalidArgument=Value of '0' is not valid for 'SelectedIndex'.
Parameter name: SelectedIndex
   at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
   at PKHeX.WinForms.Main.validateComboBox(Object sender)
   at PKHeX.WinForms.Main.validateComboBox(Object sender, CancelEventArgs e)
   at System.Windows.Forms.Control.OnValidating(CancelEventArgs e)
   at System.Windows.Forms.ComboBox.OnValidating(CancelEventArgs e)
   at System.Windows.Forms.Control.NotifyValidating()
   at System.Windows.Forms.Control.PerformControlValidation(Boolean bulkValidation)
   at System.Windows.Forms.Control.PerformContainerValidation(ValidationConstraints validationConstraints)
   at System.Windows.Forms.Control.PerformContainerValidation(ValidationConstraints validationConstraints)
   at System.Windows.Forms.Control.PerformContainerValidation(ValidationConstraints validationConstraints)
   at System.Windows.Forms.Control.PerformContainerValidation(ValidationConstraints validationConstraints)
   at System.Windows.Forms.Control.PerformContainerValidation(ValidationConstraints validationConstraints)
   at System.Windows.Forms.ContainerControl.ValidateChildren(ValidationConstraints validationConstraints)
   at System.Windows.Forms.Form.ValidateChildren(ValidationConstraints validationConstraints)
   at System.Windows.Forms.Form.ValidateChildren()
   at PKHeX.WinForms.Main.preparePKM(Boolean click)
   at PKHeX.WinForms.Main.openSAV(SaveFile sav, String path)
   at PKHeX.WinForms.Main.openFile(Byte[] input, String path, String ext)
   at PKHeX.WinForms.Main.openQuick(String path, Boolean force)

Loaded Assemblies:
--------------------
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll

PKHeX, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Users\sergi\Desktop\celebi\PKHeX.exe

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

System.Windows.Forms.resources, Version=4.0.0.0, Culture=es, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms.resources\v4.0_4.0.0.0_es_b77a5c561934e089\System.Windows.Forms.resources.dll

mscorlib.resources, Version=4.0.0.0, Culture=es, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_es_b77a5c561934e089\mscorlib.resources.dll

--------------------
User Message:
Unable to load file.
Path: C:\Users\suloku\Desktop\celebi\PCNYCrystal.sav
@kwsch
Copy link
Owner

kwsch commented Apr 21, 2017

Are you using the latest commits or the last release?
https://github.com/kwsch/PKHeX/issues?utf8=%E2%9C%93&q=is%3Aissue%20validateComboBox

@kwsch kwsch closed this as completed Apr 23, 2017
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

2 participants