Access violation at startup, and a workaround

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Access violation at startup, and a workaround

Post by *ghisler(Author) »

This problem was reported to me by e-mail:

When
1. The user has maximized Total Commander and selected Configuration - Save position,
and
2. The option "mimimize to system tray" is set,
and
3. Total Commander is started via a shortcut (lnk file) which is set to "run minimized"

then an access violation will be shown every time TC is started via that link. It seems that TC tries to call a special tray function before it was loaded. No harm is done, TC will work normally when the user clicks on OK in the error dialog.

Solution: Resize TC in non-maximized state to the desired size, and choose "save position". I will fix this problem in TC 7.04a.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have investigated on the cause of the problem now: It's nothing critical. TC tries to set the main program title as the tooltip of the tray icon, but in this specific situation the main window title is still unvailable (NULL pointer). So the access violation occurs when TC tries to read data from this NULL pointer. There is no danger of code injection or data damage.
Author of Total Commander
https://www.ghisler.com
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Re: Access violation at startup, and a workaround

Post by *karlchen »

Hello, Christian.

Followed these steps carefully.
1. The user has maximized Total Commander and selected Configuration - Save position,
and
2. The option "mimimize to system tray" is set,
and
3. Total Commander is started via a shortcut (lnk file) which is set to "run minimized"
Result:
Total Commander will be launched and minimized to the systray. No access violation will occur.

+ Windows Vista Home Premium, 32bit, GER
+ Total Commander v7.50 Public Beta 1

I assume we may consider this bug fixed.

Kind regards,
Karl
Post Reply