TC75b7 access violation on exit

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

Moderators: Hacker, petermad, Stefan2, white

waelder
Junior Member
Junior Member
Posts: 62
Joined: 2003-02-11, 13:13 UTC

TC75b7 access violation on exit

Post by *waelder »

When I exit from TCMD I sometimes got an access violation:

Exception EAccessViolation in module TOTALCMD.EXE at 000648E1.
Access violation at address 00465B0D. Write of address 01A94059.

System: WinXP Prof. SP3 32bit with 2GB RAM. OODefrag 11 background monitoring is active.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2waelder
Just my two cents:
http://www.ghisler.ch/board/viewtopic.php?p=170693#170693

Sorry I can't help more.
"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: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately I cannot reproduce this error on XP SP3 32bit. Maybe it happens only with specific settings, or after using a specific function in TC? Please try this:
1. Start Total Commander with fresh ini, e.g. via Start->Run:
c:\totalcmd\totalcmd.exe /i=c:\totalcmd\new.ini
and test whether you still get the error.
2. Start Total Commander with your settings and immediately close it. Do you still get the error?
Author of Total Commander
https://www.ghisler.com
jvh
Member
Member
Posts: 187
Joined: 2007-07-20, 12:28 UTC

Post by *jvh »

I had the same problem here (WinXP Pro SP3):
Exception EAccessViolation in module TOTALCMD.EXE at 000648E1.
Access violation at address 00465B0D. Write of address 0127C1B1.

Starting TC with fresh ini helps, so I tried deactivate different plugins and I found that file system plugin Badcopy 1.0.0.4 caused these crashes (it's reproducable).
There were no problems with TC 7.50 b6 and less.


2 waelder:
It is possible that another (file system) plugins can cause crashes too, you can deactivate them very easily via TC Plugins Manager.
alm
Junior Member
Junior Member
Posts: 59
Joined: 2006-06-23, 17:25 UTC

Post by *alm »

I confirm this bug, but when I start TC several times it might not always happen when they are shutdown again.
It does not happen (so far) when it is started with:
c:\totalcmd\totalcmd.exe /i=c:\totalcmd\new.ini

Now that I have started it a few times with the option above, it does not happen with normal ini anymore.

Used OS: Windows XP Pro SP3 UK, with NL Multilanguage Pack.

Edit: It happens again.
Using TC since 1997, known as Windows Commander in the old days ;)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I cannot reproduce the problem with BadCopy running either. :(
Author of Total Commander
https://www.ghisler.com
jvh
Member
Member
Posts: 187
Joined: 2007-07-20, 12:28 UTC

Post by *jvh »

2 Ghisler

I tried to reproduce this error on another PC where BadCopy was also active but there weren't errors after upgrading to TC 7.50 b7. I enabled and disabled BadCopy plugin many times (>10) with TC Plugin Manager and closed TC (>10 per each try) but error on exit doesn't appear.
Then I deleted obsolete plugin link via TC Plugin Manager (only record in wincmd.ini, file didn't exist) and error with BadCopy appears. And it is reproducable again - with disabled BadCopy everything is O.K., with enabled TC crashes on exit almost each time. Strange...
alm
Junior Member
Junior Member
Posts: 59
Joined: 2006-06-23, 17:25 UTC

Post by *alm »

I don't use BadCopy, so it not only happens with BadCopy.
Using TC since 1997, known as Windows Commander in the old days ;)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

There is one more thing which you could test:
Please add the following string to the file wincmd.ini, section [Configuration]:
ThreadFindFirst=0

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

Does the error still occur then?
Author of Total Commander
https://www.ghisler.com
jvh
Member
Member
Posts: 187
Joined: 2007-07-20, 12:28 UTC

Post by *jvh »

2 Ghisler

ThreadFindFirst=0 helps! No more crashes during short test.

I made another tests since yesterday and Badcopy realy isn't resposible for crashes because I record two ones with disabled Badcopy (but it was good "error accelerator" in my PC). The last thing which I discovered was when I changed startup directories in TC panels to empty ones error disappear... so it sounds for me that you hit the nail on the head. Thanks!
alm
Junior Member
Junior Member
Posts: 59
Joined: 2006-06-23, 17:25 UTC

Post by *alm »

ThreadFindFirst=0 seems to help. What is default value of this? I don't see it on other computers I work with.

It was ThreadFindFirst=1 on the computer where it gave error messages.
Using TC since 1997, known as Windows Commander in the old days ;)
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Changed---

Post by *Clo »

2alm

:) Hello !

• The default is now “1” with TC 7.5, but was “0” in previous versions…

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, alm.
totalcmd.chm => wincmd.ini wrote:ThreadFindFirst=1 When set to 1, moves FindFirstFile to separate thread, so the user can abort reading from a hanging network connection
So the default value is 1 currently.
I have been using ThreadFindFirst=1 since the times when the default still was 0 and I have not had any crash on exit caused by ThreadFindFirst=1. This is true for my office machine which is connected to our company LAN as well as for my home machines which are not connected to any LAN.

So there must be at minimum one other factor which is relevant and which in combination with ThreadFindFirst=1 may lead to crashes on exit.

Kind regards,
Karl
alm
Junior Member
Junior Member
Posts: 59
Joined: 2006-06-23, 17:25 UTC

Post by *alm »

Ok, when ThreadFindFirst=1 is the default, then it must be something else causing this (or a combination), as I only have the issue on one computer so far. Although it now doesn't seem to crash when I exit.
Using TC since 1997, known as Windows Commander in the old days ;)
jy307@columbia.edu
Junior Member
Junior Member
Posts: 11
Joined: 2006-11-11, 17:11 UTC

access violations...

Post by *jy307@columbia.edu »

I can confirm also access violations upon exit. They are not reproducible. I will post more detail when I get it.
Post Reply