report source of 'Error in packed file'

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
liborm
Junior Member
Junior Member
Posts: 12
Joined: 2010-03-15, 11:55 UTC

report source of 'Error in packed file'

Post by *liborm »

When using ctrl-pgdn to open archive by plugin with PK_CAPS_BY_CONTENT, sometimes 'Error in packed file: ...' message box pops up. It would be nice to know the source of this error.

I suppose there can be more sources -- tcmd internal unpackers and all the PK_CAPS_BY_CONTENT plugins. And it seems that the archive processing stops even if there are some plugins that could handle this file correctly -- that's another closely related suggestion -- not to stop the archive processing on this error.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You should get this error only if none of the plugins supporting PK_CAPS_BY_CONTENT supports the file type.
Author of Total Commander
https://www.ghisler.com
liborm
Junior Member
Junior Member
Posts: 12
Joined: 2010-03-15, 11:55 UTC

Post by *liborm »

I get this error eg when I press ctrl-pagedown on unacev2.dll from TotalCmd's installation, without any wcx plugins installed at all -- you should be able to reproduce this easily. I'm sorry for not providing the example earlier.
/edit:
Note: On other files in the installation there is no error message box, even if they're not supported by any of the plugins. And the plugin of mine handles all PE files, so the condition of format not being supported by any of the plugins does not come true.
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

UNACEV2.DLL simply is no archive at all. Pressing Ctrl-PgDn on any file that is not an archive will result in the error message "Error in packed file <name of file>".

This is expected behaviour. What else should happen?

Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
liborm
Junior Member
Junior Member
Posts: 12
Joined: 2010-03-15, 11:55 UTC

Post by *liborm »

@karlchen
Ok, but what makes unacev2.dll different from for example unrar.dll? Pressing ctrl-pagedown on unrar.dll - without any plugins - just does nothing.
Now imagine i've got a plugin that makes any dll behave like an archive -- there are structures in the Portable Executable (PE) format that can be sensibly taken as archive contents, for example the sections -- now I would like TCmd to pass control to my plugin for each possible PE file -- but it's blocked for some of the files. That's what I want to resolve here.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Ok, but what makes unacev2.dll different from for example unrar.dll? Pressing ctrl-pagedown on unrar.dll - without any plugins - just does nothing.
You probably have a plugin installed (which detects archives by content, not by extension) which thinks that it can handle the file, e.g. a resource view plugin. If the plugin tells TC that it cannot handle the file, TC will not show any error. However, if the plugin tells TC that it CAN handle the file, but then returns an error, TC shows that there is an error in the archive.
Author of Total Commander
https://www.ghisler.com
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, liborm.

Before replying I had tested that I get the same "Error in packed file <name>" no matter which DLL file I pressed Ctrl-PgDn on. :wink: This includes unrar.dll. So, nothing special about unacev2.dll.

Kind regards,
Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
Post Reply