Page 1 of 1

report source of 'Error in packed file'

Posted: 2012-01-05, 10:52 UTC
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.

Posted: 2012-01-05, 15:11 UTC
by ghisler(Author)
You should get this error only if none of the plugins supporting PK_CAPS_BY_CONTENT supports the file type.

Posted: 2012-01-05, 15:39 UTC
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.

Posted: 2012-01-05, 17:03 UTC
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

Posted: 2012-01-05, 21:28 UTC
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.

Posted: 2012-01-06, 11:11 UTC
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.

Posted: 2012-01-06, 12:13 UTC
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