Starting a Console application from Salamander

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
Jens
Posts: 1
Joined: 19 Feb 2012, 13:25

Starting a Console application from Salamander

Post by Jens »

I am not sure if the problem I describe is a bug or not, but it certainly has caused me a lot of problems:
If I start an .exe file from Salamander's 'command-line' (v. 2.54), the program fails when it try to establish an ado connection to SQLServer. It fails with the error 'Class not registered'.
When the program is started from the Windows Command Prompt ('dos-box') it works ok.

Using processmonitor (sysinternals.com), I found that the application searches msado15.dll in wrong folder.
I attach 2 screenshots from ProcessMonitor showing the path being searched for msado15.dll

App started from Salamander
app_started_from_salamander.png
app_started_from_salamander.png (36.18 KiB) Viewed 6384 times
App started from Command line
app_started_from_commandline.png
app_started_from_commandline.png (12 KiB) Viewed 6384 times
Thanks
User avatar
SelfMan
Posts: 1155
Joined: 05 Apr 2006, 20:51
Contact:

Re: Starting a Console application from Salamander

Post by SelfMan »

I believe Salamander's CMD is started as a 32 bit process. The system one is 64 bit. Thus the difference locating the library.
Have you tried to execute the program on a 32bit system?
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Re: Starting a Console application from Salamander

Post by Jan Rysavy »

Note for Czech readers: http://forum.altap.cz/viewtopic.php?f=6&t=3502

You can try to change "ComSpec" environment variable from ComSpec=%SystemRoot%\system32\cmd.exe to ComSpec=%SystemRoot%\Sysnative\cmd.exe to start x64 version of Command Shell.
User avatar
Ether
Posts: 1471
Joined: 10 May 2007, 16:08
Location: Czech Republic
Contact:

Re: Starting a Console application from Salamander

Post by Ether »

I have to say that the 32-bit search paths are very weird (unexpanded environment variables, concatenated absolute paths). There may be something else going on there.
Ελληνικά rulez.
Post Reply