[TC 8.0 B21 x64] Weird error with e-banking software

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

Moderators: Hacker, petermad, Stefan2, white

Timores
Junior Member
Junior Member
Posts: 11
Joined: 2012-02-24, 22:59 UTC
Location: Switzerland

[TC 8.0 B21 x64] Weird error with e-banking software

Post by *Timores »

Since using version 8, I am unable to use my e-banking software (Migros bank). This software is a modified version of Firefox running off a special USB key with a smart card inside.

If I launch this software through TC 8 (B16, B18, B20, B21 x64, or B20 x32), the software is launched but shows the message "Unable to access the smart card".

I've been using this software for years with TC 7.x and 6.x without any issue.

Launching from Explorer works fine.

I am running on Win7 SP1 x64.

Have you modified how TC reacts to double-clicking on an EXE file ?

Regards,
JM Pirelli
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3381
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

Have you tried TC8 32bit?
Hoecker sie sind raus!
User avatar
petermad
Power Member
Power Member
Posts: 16115
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Timores
If you are running TC "As administrator" - then try not to, or if you are not running TC "As administrator" the try that in stead.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Timores
Junior Member
Junior Member
Posts: 11
Joined: 2012-02-24, 22:59 UTC
Location: Switzerland

Post by *Timores »

@Sir_Silva: thanks for the suggestion. Yes, I also tried beta 20 of the 32-bit version.

@petermad: thanks for the suggestion. I usually run as "non admin". I tried as admin, and got the same result. I also tried as "non admin" and run the e-banking software as admin, but it did not work either.

I just tried 7.57 and it also has the issue now.

Just tried again through Explorer and it works fine.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50861
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Maybe Total Commander is started with compatibility settings in the link? These are inherited by programs started from Total Commander.
Author of Total Commander
https://www.ghisler.com
Timores
Junior Member
Junior Member
Posts: 11
Joined: 2012-02-24, 22:59 UTC
Location: Switzerland

Post by *Timores »

@ghisler. Thanks for the suggestion.

The properties screen of the link and of the totalcmd64.exe file has a compatibility tab where all check boxes are NOT checked.
Is there another place to check that you had in mind ?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50861
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No, that was the right location. Sorry, I have no idea what else could be wrong. I recommend that you launch the software from Explorer, then right click on the icon in the task bar and pin it on.
Author of Total Commander
https://www.ghisler.com
Timores
Junior Member
Junior Member
Posts: 11
Joined: 2012-02-24, 22:59 UTC
Location: Switzerland

Post by *Timores »

Yeah, I agree it's as weird as could be imagined.
So, you're saying you did not change the way an EXE is launched ?

I'll create a desktop shortcut or something like that (the USB key does not always have the same drive letter so I may end up launching Explorer just for that; it's not a problem to do it once per month. Compared to 8 hours per day with TC, every day since about 1991 and version 1.32 ) 8)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50861
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

So, you're saying you did not change the way an EXE is launched ?
I'm still using the same function, ShellExecuteEx - the code is the same. However, 64-bit programs see a bit different environments than 32-bit programs. But Explorer is 64-bit too, so I don't see any reason why it should behave differently (except for the things described above with "as admin" and comptibility).
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3511
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

Timores
You could try to check if the application will start from command-line prompt launched from Windows shell (by Start->Run, cmd, <Enter>) and from TC (cmd, <Enter> in TC's command line). It might help to find out whether the cause of the problem is specific TC environment or not.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
Timores
Junior Member
Junior Member
Posts: 11
Joined: 2012-02-24, 22:59 UTC
Location: Switzerland

Post by *Timores »

From a command line prompt (i.e. Start / Run / cmd), typing:
h:
start_M-identity_Win.exe

works fine.

Going to the H drive with TC (8 B22, x64) and typing
start_M-identity_Win.exe
in its command-line does not work (i.e. the software starts, but is then unable to access the smart card).
User avatar
Flint
Power Member
Power Member
Posts: 3511
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

Timores wrote:Going to the H drive with TC (8 B22, x64) and typing
start_M-identity_Win.exe
in its command-line does not work
No, what I suggested was this:
1. In TC command line type
cmd
and press Enter.
2. In the console window that appears try to launch your application exactly as you did in the console opened via Start->Run.

By this experiment I want to find out whether the problem is caused by some difference between environments (native and the one inside TC). Since cmd started from TC inherits its environment, but uses the same launch method as any other cmd instance, the result of the experiment will show the location of the problem's source: environment or API functions used for launching applications.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
Timores
Junior Member
Junior Member
Posts: 11
Joined: 2012-02-24, 22:59 UTC
Location: Switzerland

Post by *Timores »

Sorry about the misunderstanding; and thank you for the clarification.

I typed cmd from TC and then launched the e-banking software.
It worked fine (!). I tried a second time and it also worked.

Then I tried again from TC and it failed. So, I launched cmd once more (again from within TC) and launched again the e-banking software. Which failed this time...
User avatar
Flint
Power Member
Power Member
Posts: 3511
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

Timores
That's weird… I hoped reproducability would be more stable.

OK then, let's try something else. Download Process Explorer, launch it, select File -> Show details for all processes (confirm the UAC request), and do the following steps:
1) Start a faulty instance of your e-banking program (that is, run it from TC so that it failed to access the smart card).
2) Switch to Process Explorer, find the process you just launched, double-click it.
3) In the Properties dialog that opens, you need the following tabs: Image, TCP/IP, Security, Environment.
4) In each of these tabs view and write down or screenshot all the information they contain. It's a good idea to maximize this dialog beforehand, to reduce amount of scrolling. I don't know which information might be of use, so I cannot name anything specific.
5) Now close the Properties dialog, close the e-banking program, and start it again, this time from Explorer (so that the smart card was now accessible).
6) Repeat the steps 2-5 for this new instance of the program.
7) Compare the data from these two processes, and tell us what differences there are.

PS: If it so happens that your e-banking program starts child processes of its own, you should repeat these steps for all of them.

PPS: BTW, do you have any anti-virus or HIPS program installed on your computer? If yes, did you try disabling them?
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
Timores
Junior Member
Junior Member
Posts: 11
Joined: 2012-02-24, 22:59 UTC
Location: Switzerland

Post by *Timores »

I'll do the PE manipulations this evening.

I tried disabling the anti-virus software (Avast 7) but it did not make any difference.

I had tried with Process Monitor to find a difference between a working run and a non-working one. I uploaded the log to https://skydrive.live.com/?cid=1e771dcd1c382f9c#.
The first part (up to 17:28:00.7042995, line 4573) is the non-working try. The second part is the OK one.
But it's quite hard to read and get something out of it. The E-banking software is called mbancnet.exe.
Post Reply