Skip to content

Traceback due to trying to load a group using the index of an icon #6

Description

@kdschlosser

There is also another issue when trying to export an icon. It seems that the code for the export uses the icon "name" when it makes a query about a group.

I am not sure why it does this but If I have 3 icons that are embedded the names would be 1, 2, 3 but I only have a single group and it's name is 1 so if I try to do anything with icon 2 and 3 the traceback below happens

File "C:/Users/Administrator/.PyCharmCE2017.1/config/scratches/scratch_51.py", line 454, in action_export_icon
  ico.load_from_resource(res, args.name, args.lang)
File "C:/Users/Administrator/.PyCharmCE2017.1/config/scratches/scratch_51.py", line 88, in load_from_resource
  info = res.get_resource(RT_GROUP_ICON, res_name, res_lang)
File "C:/Users/Administrator/.PyCharmCE2017.1/config/scratches/scratch_51.py", line 358, in get_resource
  hres = FindResourceEx(self.hsrc, res_type, res_name, res_lang)
File "C:/Users/Administrator/.PyCharmCE2017.1/config/scratches/scratch_51.py", line 161, in ValidHandle
  raise ctypes.WinError()
WindowsError: [Error 1814] The specified resource name cannot be found in the image file.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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