HTMLView trouble

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
obmana
Junior Member
Junior Member
Posts: 53
Joined: 2013-08-28, 15:35 UTC

HTMLView trouble

Post by *obmana »

Let me start by explaining what happened - I generated GraphML file - "graph.graphml", which turned 28MB in size. Before loading it in associated application, I wanted to sneak into it and see if attributes got written as intended, so in TC I pressed F3 expecting default text lister as preview, but that's not what happened...

This aggressive HTMLView lister took the file handle (although no one told it to) and I suspect that it will take handle for any file with XML header among others. Then it tried to render the file in it's IE wrapper window and my PC freeze - I couldn't close it, couldn't access Ctrl+Shift+Esc, nor Ctrl+Alt+Del, mouse stop listening too, so I sat and waited for about 15min or so, as I had opened couple of applications I was working in and didn't want to loose the work.

Then, whole screen got blank and after some minutes window slowly pop up (on a blank screen) telling me it can't access login screen or something similar and suggested I press Esc or turn the power off! I pressed Esc, but nothing happened, then soon unwillingly shut the PC down, loosing some work, time, and couple of nerves.

Why this trouble? First, I didn't ever thought that TC plugin can be so demanding and it can take the whole control and force me to turn off the PC. Then why 28MB XML file is trouble for plugin that's basically decorated IE control? I can load this file in IE, and it wont freeze my PC.

There seem to be couple of html listers. This one is listed on http://www.ghisler.com/plugins.htm so if user has to choose my bet goes there.
I don't wish anyone same to happen, so be aware of this behavior.
User avatar
tbeu
Power Member
Power Member
Posts: 1354
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

1. Use ALT+SHIFT+F3 if you want to force file view in pure lister.
1. Maybe the lister interface can be extended to get timeout behavior or cancel option if ListLoad takes too long.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
petermad
Power Member
Power Member
Posts: 16027
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

You can also add "| force" in the wincmd.ini file for plugins that you don't want to launch automatically - for example:

Code: Select all

[ListerPlugins]
0=%COMMANDER_PATH%\PLUGINS\WLX\HTMLView\HTMLView.wlx
0_detect=ext="PDF" | force
Then the plugin will only be launched after pressing "4", once Lister is opened - unless, like in this example the file is a pdf file.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply