Connecting usb device

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Evds
Junior Member
Junior Member
Posts: 90
Joined: 2009-06-10, 11:09 UTC

Connecting usb device

Post by *Evds »

Occasionally PB5 freezes when i insert an usb device (left panel tree, right panel full). After inserting the device i get an explorer window which points to the drive of the newly inserted device but tcmd seems to hang (not responding in taskmgr).


TC7.5 PB5, Windows XP SP3
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Are there any inaccessible network drives (e.g. because the server is unreachable) on your system?
Author of Total Commander
https://www.ghisler.com
Evds
Junior Member
Junior Member
Posts: 90
Joined: 2009-06-10, 11:09 UTC

Post by *Evds »

Are there any inaccessible network drives (e.g. because the server is unreachable) on your system?
No.

I can open another instance of tcmd (while the first is still freezed) and use that without problems.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Maybe it helps to turn off auto-insert notification in TC.

Please add the following string to the file wincmd.ini, section [Configuration]:
DeviceChange=0

You can edit the wincmd.ini via Configuration - Change settings files directly.

However, you will then have to press F2 or Ctrl+R to refresh the drive list manually.
Author of Total Commander
https://www.ghisler.com
Evds
Junior Member
Junior Member
Posts: 90
Joined: 2009-06-10, 11:09 UTC

Post by *Evds »

Added the string DeviceChange=0 to wincmd.ini as you suggested but the problem still exists.

I just had the problem again but i noticed now that when i insert the usb stick the newly inserted device appears in the tree list on the left side (is that normal after inserting devicechange=0 to wimcmd.ini ?) and just after that tcmd hangs. I still can minimize and restore tcmd.

Does this help ?

ntoskrnl.exe+0x47f3
ntoskrnl.exe!PsGetContextThread+0x329
ntoskrnl.exe!FsRtlInitializeFileLock+0x83f
ntoskrnl.exe!FsRtlInitializeFileLock+0x87e
win32k.sys+0x2f35
win32k.sys+0x412b4
win32k.sys!EngDeleteSurface+0x906
win32k.sys!EngFreeUserMem+0x5a2b
win32k.sys!EngSetLastError+0x4520
win32k.sys!EngSetLastError+0x316e
win32k.sys!EngSetLastError+0x5eda
win32k.sys!EngCreateBitmap+0x4eee
win32k.sys!EngGradientFill+0x338a
win32k.sys!EngSetLastError+0x13e1
win32k.sys+0x1ea2
win32k.sys+0x36cf
ntoskrnl.exe!ZwYieldExecution+0xb78
ntdll.dll!KiFastSystemCallRet
user32.dll!PeekMessageW+0x167
TOTALCMD.EXE+0x19aac
TOTALCMD.EXE+0x19bf2
TOTALCMD.EXE+0x29f11b
kernel32.dll!RegisterWaitForInputIdle+0x49
Post Reply