LinkInfo: Lister plugin for viewing/editing LNK files

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

Moderators: sheep, Hacker, Stefan2, white

Post Reply
gnozal8
Junior Member
Junior Member
Posts: 83
Joined: 2004-01-12, 11:14 UTC
Contact:

Post by *gnozal8 »

@Flint : it happens with any .lnk I have tested at work with NT4. If I open such a file in the LinkEditor, change something, save it and then view it with the plugin, it will still close TC on exit.
At home (Win98SE), I have no problem.
Here is the log file :

Code: Select all

Begin closing
Got Lister window, beginning destroy it
Destructor started
Icon is not NULL, beginning destroying
Icon is destroyed successfully
RichEdit library is not NULL, beginning destroying
RichEdit library is destroyed successfully
Destructor finished 
Installed plugins (on NT4 machine) :

Code: Select all

[FileSystemPlugins]
HTTP Browser=C:\WINNT\wincmd\http\httpbrowser.wfx
HTTP SmartBrowser=C:\WINNT\wincmd\HTTPPlugin.dll
Calendar=C:\WINNT\wincmd\calendar\calendar.wfx
Services=C:\WINNT\wincmd\Services.wfx
Temporary Panel=C:\WINNT\wincmd\TempPanel.wfx
[PackerPlugins]
ISO=0,C:\WINNT\wincmd\iso.wcx
MSI=15,C:\WINNT\wincmd\msi-plus.wcx
BZ2=251,C:\WINNT\wincmd\bzip2dll.wcx
HA=223,C:\WINNT\wincmd\HA.wcx
PPM=17,C:\WINNT\wincmd\Ppmd.wcx
REG=15,C:\WINNT\wincmd\WCReg.wcx
Z=11,C:\WINNT\wincmd\z.wcx
LST=23,C:\WINNT\wincmd\CatalogMaker.wcx
BIN=0,C:\WINNT\wincmd\iso.wcx
IMG=0,C:\WINNT\wincmd\iso.wcx
AES=93,C:\WINNT\wincmd\AES.wcx
EAF=95,C:\WINNT\wincmd\cryptonite.wcx
NRG=192,C:\WINNT\wincmd\iso.wcx
___=64,C:\WINNT\wincmd\ietotal.wcx
[ListerPlugins]
0=C:\WINNT\wincmd\Imagine.wlx
0_detect="MULTIMEDIA"
1=C:\WINNT\wincmd\SynPlus\SynPlus.wlx
2=C:\WINNT\wincmd\LinkInfo.wlx
2_detect="force | (ext="LNK")"
TotalCmd 6.03a
Last edited by gnozal8 on 2004-06-02, 14:58 UTC, edited 2 times in total.
User avatar
Flint
Power Member
Power Member
Posts: 3311
Joined: 2003-10-27, 09:25 UTC
Location: Moscow, Russia
Contact:

Post by *Flint »

gnozal8
Is it really the full text of that file? There must be an additional last line:

Code: Select all

Destroyed Lister window
The whole file must be 281 bytes length and contain 10 lines (the 10th line is empty). Is your file really looks different?
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 9.51 / Win7 x64 SP1, Win10 x64
gnozal8
Junior Member
Junior Member
Posts: 83
Joined: 2004-01-12, 11:14 UTC
Contact:

Post by *gnozal8 »

The file is 257 bytes long (8 lines).
User avatar
Flint
Power Member
Power Member
Posts: 3311
Joined: 2003-10-27, 09:25 UTC
Location: Moscow, Russia
Contact:

Post by *Flint »

Ok...
So, try please the following version:
http://flint-inc.ru/Tests/LinkInfo_1.5.debug1.rar
It has some different handling of window closing. The log file must be:
Begin closing
Got Lister window, beginning destroy it
Destroyed Lister window
with size 78 bytes.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 9.51 / Win7 x64 SP1, Win10 x64
gnozal8
Junior Member
Junior Member
Posts: 83
Joined: 2004-01-12, 11:14 UTC
Contact:

Post by *gnozal8 »

78 bytes

Code: Select all

Begin closing
Got Lister window, beginning destroy it
Destroyed Lister window 
And it works !
TotalCMD don't quit anymore :D
User avatar
Flint
Power Member
Power Member
Posts: 3311
Joined: 2003-10-27, 09:25 UTC
Location: Moscow, Russia
Contact:

Post by *Flint »

gnozal8
All right.
Unfortunately, this version of plugin does not free some resources and memory on exit, so it produces memory leaks. As I found, some leak was also in normal version 1.5, but there it was about 6 Kbytes per start, and in the last version (which does not close TC) it is about 10-12 Kbytes. So, the work is not finished...

Please, try the next test:
http://flint-inc.ru/Tests/LinkInfo_1.5.debug2.rar
The most probable behaviour is the same to the first logging version, i.e. produce LinkInfo.log and close TC on exit, but it is necessary to check it...
The most probable contents of LinkInfo.log is:
Begin closing
Got Lister window, beginning destroy it
Unsubclassing it...
OldHWnd == ListWin
Destructor started
Icon is not NULL, beginning destroying
Icon is destroyed successfully
RichEdit library is not NULL, beginning destroying
RichEdit library is destroyed successfully
Destructor finished
Destroyed Lister window
12 lines (including the last empty line), 320 bytes.

Added:
And one more test:
http://flint-inc.ru/Tests/LinkInfo_1.5.debug3.rar
Almost the same to the previous, but the log file is a little different:
Begin closing
Got Lister window, beginning destroy it
Unsubclassing it...
OldHWnd == ListWin
Destructor started
Icon is not NULL, beginning destroying
Icon is destroyed successfully
RichEdit library is not NULL, beginning destroying
RichEdit library is destroyed successfully
Destructor finished
Destroyed child window
Destroyed Lister window
13 lines, 343 bytes.
gnozal8
Junior Member
Junior Member
Posts: 83
Joined: 2004-01-12, 11:14 UTC
Contact:

Post by *gnozal8 »

Debug2
Total Commander says 'Access violation at address 480134A0 (read of adress 480134A0)' when exiting the lister. Another error occurs after this one : Exception EAccessViolation in module TOTALCMD.EXE at 47C12274.
Log :
320 bytes

Code: Select all

Begin closing
Got Lister window, beginning destroy it
Unsubclassing it...
OldHWnd == ListWin
Destructor started
Icon is not NULL, beginning destroying
Icon is destroyed successfully
RichEdit library is not NULL, beginning destroying
RichEdit library is destroyed successfully
Destructor finished
Destroyed Lister window 
Debug3
TotalCMD quits when exiting the plugin.
Log :
319 bytes

Code: Select all

Begin closing
Got Lister window, beginning destroy it
Unsubclassing it...
OldHWnd == ListWin
Destructor started
Icon is not NULL, beginning destroying
Icon is destroyed successfully
RichEdit library is not NULL, beginning destroying
RichEdit library is destroyed successfully
Destructor finished
Destroyed child window 
User avatar
Flint
Power Member
Power Member
Posts: 3311
Joined: 2003-10-27, 09:25 UTC
Location: Moscow, Russia
Contact:

Post by *Flint »

gnozal8
Ok, thanks... Now I tried to apply another methode for work with windows. Maybe, it will work correctly?
http://flint-inc.ru/Tests/LinkInfo_1.6.debug.rar
http://flint-inc.ru/Tests/LinkInfo_1.6.debug1.rar
These two versions do not produce log file, just test them please - will they close TC or throw an error?
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 9.51 / Win7 x64 SP1, Win10 x64
gnozal8
Junior Member
Junior Member
Posts: 83
Joined: 2004-01-12, 11:14 UTC
Contact:

Post by *gnozal8 »

Both work correctly (no TotalCMD exiting or error).
But there is no more context menu when I do a right-click ?!
User avatar
Flint
Power Member
Power Member
Posts: 3311
Joined: 2003-10-27, 09:25 UTC
Location: Moscow, Russia
Contact:

Post by *Flint »

Damn it! :( It works fine by me...
And what about this version?
http://flint-inc.ru/Tests/LinkInfo_1.6.debug2.rar
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 9.51 / Win7 x64 SP1, Win10 x64
gnozal8
Junior Member
Junior Member
Posts: 83
Joined: 2004-01-12, 11:14 UTC
Contact:

Post by *gnozal8 »

LinkInfo_1.6.debug2.rar
Weird : context-menu is back but TotalCMD quits again when closing lister :cry:
User avatar
Flint
Power Member
Power Member
Posts: 3311
Joined: 2003-10-27, 09:25 UTC
Location: Moscow, Russia
Contact:

Post by *Flint »

gnozal8
Well... And what about the following variants:
http://flint-inc.ru/Tests/LinkInfo_d3.rar
http://flint-inc.ru/Tests/LinkInfo_d4.rar
http://flint-inc.ru/Tests/LinkInfo_d5.rar
http://flint-inc.ru/Tests/LinkInfo_d6.rar
http://flint-inc.ru/Tests/LinkInfo_d7.rar

PS: I can't understand - what is the bug that apears on so little number of machines... If I could see it on my machine it would be great, but unfortunately I can't :(
I think, this testing will end soon - either I'll find where the bug is, or I leave the version that has leak but does not close TC. The second variant is not good of course...
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 9.51 / Win7 x64 SP1, Win10 x64
gnozal8
Junior Member
Junior Member
Posts: 83
Joined: 2004-01-12, 11:14 UTC
Contact:

Post by *gnozal8 »

d3 is not good (TotalCMD quits), but d4,d5,d6,d7 are working correctly :D
User avatar
Flint
Power Member
Power Member
Posts: 3311
Joined: 2003-10-27, 09:25 UTC
Location: Moscow, Russia
Contact:

Post by *Flint »

gnozal8
Is d6 really working? With context menu?
(Several versions more - and I will be completely confused between them all :))
If d6 is really working then try please the possibly LAST(!) variant:
http://flint-inc.ru/Tests/LinkInfo_d61.rar
If it does not throw message box on exit, then it is the really last debug version, else...
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 9.51 / Win7 x64 SP1, Win10 x64
gnozal8
Junior Member
Junior Member
Posts: 83
Joined: 2004-01-12, 11:14 UTC
Contact:

Post by *gnozal8 »

LinkInfo_d61.rar works, with context menu and without messagebox :D
Congratulations !

PS : with all these test versions, I see russian text. I believe this is because it's a debug version, right ?
Post Reply