exception C0000005 when closing TC

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
ND
Member
Member
Posts: 150
Joined: 2006-04-10, 16:24 UTC
Location: Sibiu, RO

exception C0000005 when closing TC

Post by *ND »

The problem may be in the file-system plugin Startup Guard, rather than Total Commander, because it happens every time in this scenario:
1. open TC
2. go to FS plugins
3. enter Startup Guard
4. close TC
⇒ the following error message appears

Code: Select all

---------------------------
Total Commander 7.50PB8
---------------------------
Access violation at address 01899854. Read of address 01899854.

Please report this error to the Author, with a description
of what you were doing when this error occurred!

Windows exception: C0000005
Stack trace:
01899854

Raw:
50B944  417BD7  4170FF  4171CB  441C7D  443E6D
415B6C  443255  443BAD  >413E90  443193  413E90
443101  413E90  443F17  4166FD  444AE6  41726A
501B5A  441C7D  443E6D  415B6C  443255  443BAD
413E90  443193  413E90  443101  413E90  5130BA
443F17  4166FD  441EAA  441C7D  443E6D  415B6C
443255  443BAD  413E90  443193  413E90  41950F
419544  4196FE  69B62B  
Press Ctrl+C to copy this report!
Continue execution?
---------------------------
Yes   No   
---------------------------
It's always the same message (same bytes everywhere).
WinXP Pro SP3, TC 7.5pb8, SG.wfx 0.5.2

P.S.
These may be due to the fact that TC main window is closed at the time:
1. The stack trace (is that what it is?) message-box does not stay open long enough, it closes by itself so fast sometimes that I don't get the chance to Ctrl+C it…
2. The message-box opens in the background (i.e. under other windows), and I did not see it until TC was the only application on the desktop.
aNDreas Bolotă
The truth always carries the ambiguity of the words used to express it. (Frank Herbert, God Emperor of Dune)
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

Confirmed!

Edited:
Same for DeliciousPosts plugin (tested 20 others without problems).
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50841
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Address 50B944 is indeed the following code: ShowWindow(handle,sw_hide);

The rest happens outside of TC, so it probably is StartupGuard...
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50841
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It really seems to be a bug in StartupGuard - I guess that it sets some kind of hook, or subclasses a window, and doesn't remove that when unloaded. I can prevent the exception on shutdown, though (found a workaround).

Btw, you can get a crash due to StartupGuard also in TC 7.04a:

Just load Startup Guard, return to a local drive, then write the command cm_UnloadPlugins on the command line and press ENTER. Now move the mouse around over the file panels, and TC 7.04a will disappear with a "critical error" beep!
Author of Total Commander
https://www.ghisler.com
User avatar
ND
Member
Member
Posts: 150
Joined: 2006-04-10, 16:24 UTC
Location: Sibiu, RO

Post by *ND »

The exception message does not appear when closing TC7.5rc1 anymore.

Using [face=courier]cm_UnloadPlugins[/face] though… sometimes causes TC to close, and other times causes →100% CPU load in TC.
I guess for this the bug in the plugin itself would have to be fixed.
aNDreas Bolotă
The truth always carries the ambiguity of the words used to express it. (Frank Herbert, God Emperor of Dune)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50841
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The exception message does not appear when closing TC7.5rc1 anymore.
Great, thanks for confirming the fix!
Author of Total Commander
https://www.ghisler.com
Post Reply