Bugfix for lst2str under Windows XP found

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Bugfix for lst2str under Windows XP found

Post by *icfu »

If you have problems with strange parameter crap passed at the end of the command line, activate compatibility mode for lst2str.exe! All available options work, even Windows 2000, so this problem seems to have something to do with Windows XP only, maybe even only XP SP2, no idea...

Read my answer here to learn about the needed dummy parameter if your program even doesn't work correctly after the compatibility fix:
http://www.ghisler.ch/board/viewtopic.php?t=3858#55694

@ghisler:
Please message JackFoo about the problems (again), I don't know how to contact him, thanks.

Icfu
This account is for sale
User avatar
JackFoo
Senior Member
Senior Member
Posts: 373
Joined: 2003-02-05, 19:53 UTC
Location: ERROR

Post by *JackFoo »

Hi,
I'll check your post and see if I find the problem, if you have any other info about the bug I'll be happy to hear about it.

Cheers.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

The bugfixed version I got from JackFoo works for me, so the "dummy parameter" isn't needed anymore BUT activating XP compatibility mode is still needed to get rid of the "crap" at the end of the command line.

In case someone needs the update contact me, JackFoo wants to collect more bug reports first before releasing it to the public.

Icfu
This account is for sale
User avatar
JackFoo
Senior Member
Senior Member
Posts: 373
Joined: 2003-02-05, 19:53 UTC
Location: ERROR

Post by *JackFoo »

Hi icfu,
have you been able to reproduce the so called 'crap' being appended? I just wan't to see if it's a bug on my side and if so fix it before releasing anything.

Cheers.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Compatibility mode off: Crap is appended.
Compatibility mode on: Everything ok.

Command: lst2str.exe
Parameter: /X:"baregrep.exe" /L:"%F" /S:"keyword"

Mark some files, press button. Reproducable on Windows XP SP2.

Could someone download http://www.baremetalsoft.com/baregrep/index.php and try it out? It's a standalone executable and an extremely useful app, thanks...

Icfu
This account is for sale
User avatar
JackFoo
Senior Member
Senior Member
Posts: 373
Joined: 2003-02-05, 19:53 UTC
Location: ERROR

Post by *JackFoo »

Where do you set the Compatibility mode ?
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Properties of lst2str.exe -> Compatibility tab

On Windows XP this tab is active by default, if it's off anyway you have to register the dll:
regsvr32 slayerxp.dll

On Windows 2000 the tab is inactive by default:
regsvr32 slayerui.dll

Check this link, too:
http://www.microsoft.com/windowsxp/using/helpandsupport/learnmore/appcompat.mspx

Icfu
This account is for sale
User avatar
JackFoo
Senior Member
Senior Member
Posts: 373
Joined: 2003-02-05, 19:53 UTC
Location: ERROR

Post by *JackFoo »

Bah, at last, thanks a lot. Just found the bug, I have no idea why it worked for you with compatibility mode on... but weirder things happened, anyway all's fixed.

I've sent the new version to Christian and posted it here as well (as b64).

Thanks to icfu and others who helped track it down, my apologies for the bug.

Cheers.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Can you explain where that crap came from? I am really interested about that.

Thanks for the fix. :)

Icfu
This account is for sale
User avatar
JackFoo
Senior Member
Senior Member
Posts: 373
Joined: 2003-02-05, 19:53 UTC
Location: ERROR

Post by *JackFoo »

Erm, I'm embarrassed to say :), it was a silly typo and with pointers ... silly typos are equivalent to a crazy person holding a nuke trigger.

Cheers.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2JackFoo
Thanks very much! I have just put it online and removed your file from the forum and replaced it with a link to fileburst.
Author of Total Commander
https://www.ghisler.com
User avatar
JackFoo
Senior Member
Senior Member
Posts: 373
Joined: 2003-02-05, 19:53 UTC
Location: ERROR

Post by *JackFoo »

Many thanks Christian.
Post Reply