Problem - Open Images witch TC & Vista

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

Moderators: white, Hacker, petermad, Stefan2

User avatar
GeProtector
Junior Member
Junior Member
Posts: 8
Joined: 2004-11-27, 21:25 UTC

Problem - Open Images witch TC & Vista

Post by *GeProtector »

Hi,
i use Windows Vista HomePremium and TC 7 Beta 3.

Every time i open a Image with the TC, i will be ask how to open it. (open as...)

http://img503.imageshack.us/img503/8934/tcbugsz1.jpg

Every time i select one prgoramm and marked the "filetype open everey time with this program" and every time i will be ask again.

But if i open the same image without TC (Windows Explorer etc.) it will be open with the correct program.

So its a TC problem only - what can i do to fix this?

(sorry for my englisch - its late :P )
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48108
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It looks like TC sees "open with" as the default verb, while Explorer sees something else. TC7 beta 4 will no longer try to find out what the default verb is, and just launch the file with an empty verb. Please report how it works once TC7 beta 4 becomes available!
Author of Total Commander
https://www.ghisler.com
User avatar
GeProtector
Junior Member
Junior Member
Posts: 8
Joined: 2004-11-27, 21:25 UTC

Post by *GeProtector »

Ok, the same problem with Movie-Files.

And another bug:

TC dont show the icons of these files
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48108
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Ok, the same problem with Movie-Files.
Please try with beta 4!
TC dont show the icons of these files
I will try to write a tool which reads all the relevant parts from the registry, which will make it easier to find the problem.
Author of Total Commander
https://www.ghisler.com
User avatar
GeProtector
Junior Member
Junior Member
Posts: 8
Joined: 2004-11-27, 21:25 UTC

Post by *GeProtector »

Sorry, same problem with beta 4.

Perhaps its a config-problem with my TC?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48108
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, same problem with beta 4.
Then something is wrong with your computer. I'm now letting Windows itself choose the associated program, by passing NIL/NULL to ShellExeuteEx. If even Windows cannot find the correct program, then the association must really be f*cked up.
Author of Total Commander
https://www.ghisler.com
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

ghisler(Author) wrote:then the association must really be f*cked up.
Yeah -- a f*cked up OS
Yeah -- a f*cked up M$
Yeah -- a f*cked up world
Yeah -- a f*cked up life
............
If I say f*ck 2 more times there's 10 f*cks in this f*cked up reply.
TC for Linux please!
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
If even Windows cannot find the correct program
Well the thread starter reported that it works ok in Explorer. That means Explorer is doing something else here.
I remember a thread in the German forum where a user reported that an operating system update solved the problem. So the question is are all updates installed? Maybe Microsoft has added some new strange new ways of opening an associated document and decided later to remove this probably undocumented behavior - just a thought...
Last edited by Lefteous on 2007-02-23, 11:18 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48108
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Explorer isn't the Windows API. I have no idea what Explorer does instead of ShellExecuteEx, only a few people at Microsoft know that.
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
I edited my post above while you answered - I guess we had the same suspicion...
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Okay, moved from Vista: Fehler beim Programmaufruf to this forum.

2Lefteous
I don't think, that this is fixed with any existing MS-SP. As mentioned in the above thread, the phenomenon, is still here under Vista ultimate, also the update state is very close to Herr Mann's report.


Let's try to locate the reason with a little bit more systematic testing.

The Beta4 has one different behavior compared to Beta3:
:arrow: :!: When copying the avi-filename to the TC - Command line and executing it from this place (<Ctrl+Enter><Enter>), always the correct associated program is called. This is definitly different to TC7b3.
In Beta 3 this method works only when WindowsMediaPlayer(WMP) is the default program. :!:

Identical behavior in Beta3 and Beta4:
:arrow: Double Click or <Enter> neither works in B3 nor B4 if the default program is not WMP.

:arrow: Context menu and selecting the first entry works with both betas and both associated programs. :!:
If WMP is the default program the entry is named "play"
If mPlayerC is the default program, the entry is identical to the "filename"

:arrow: dragging the avi file on an new button and start the the document with a click on this buttons works only with WMP, not with mPlayerC declared as default program
Interesting remark: under "icon file" the filename of the actually associated program is automatically inserted.

So we have 4 different methods to open a document.
In Beta3 only one of four is okay.
IN Beta4 two of four are okay.

Knowing TC's source code, following the different execution paths, it should be possible to find the one working solution to fix this behavior under Vista.

HTH
Holger
Last edited by HolgerK on 2007-02-23, 15:44 UTC, edited 1 time in total.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2HolgerK
Let's try to locate the reason with a little bit more systematic testing.
Well the only systematic way I can think of is to find out what Explorer does using spy program which
- works on Vista
- support the function which is called by Explorer
- supports complete parameter report
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Okay, You are talking about systematic debugging, I was talking about systematic testing.

If You prefer the brutal force method, any suggestion about the spy-tool which You or I can use to capture this information?

Kind regards,
Holger
User avatar
GeProtector
Junior Member
Junior Member
Posts: 8
Joined: 2004-11-27, 21:25 UTC

Post by *GeProtector »

Today i uninstall my TC completely and reinstall TC Beta 4. I delete every config-files from my old installation. But it don´t work. The same bug.

Yes, i have intalled all Vista Updates from WinUpdate.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48108
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It's not a bug of Total Commander. I'm just calling ShellExecuteEx now with the image file as parameter and NULL as the Verb, so Windows does all the rest.

There must be some kind of ambiguity in your associations, which is handled by the Explorer in one way, and the Windows functions in another way. Removing this ambiguity will fix the problem.

Can you post the association for this file type, please?

There are two keys involved:
1. HKEY_CLASSES_ROOT\.jpg

Post the contents of this key (start regedit, go to the key, choose Export - Only the selected branch). Then paste the contents of the file here.

2. The above key contains a (default) value. This value is something like jpg_file or Jpegfile or similar. So repeat the same with the key named jpg_file or Jpegfile (or whatever you found as the default value) under HKEY_CLASSES_ROOT.
Author of Total Commander
https://www.ghisler.com
Post Reply