Re: loading oratcl from starkit



On Mar 14, 12:32 pm, Sergio Anis <sergioa...@xxxxxxxxx> wrote:
hi everybody:

I'm having some problems loading oratcl from a starkit. In an erlier
post G. Lester adviced to use the following script in the package
index:

package ifneeded Oratcl 4.4 [ list OraLoad $dir ]
proc OraLoad { dir } {
global env

foreach file [ glob $dir/*.dll ] {
catch { file copy -force $file [ file join $env(TEMP) [ file tail
$file ] ] }}

catch { file copy -force $dir/msvcr70.dll [ file join [ file dirname
[ info nameofexecutable ] ] msvcr70.dll ] }
load $env(TEMP)/oratcl44.dll

}

This works fine in some windows 2000, but fail in some windows 2000
and xp. The script fail when it try to load the oratcl44.dll, the
error message doesn't say why. I noticed that in the cases where it
fails, the dll were not copied into c:\temp. So I hardcoded the paths
(I'll use it only in windows) making sure that the dll exist on c:
\temp. Now the dll are into the c:\temp but still is unable to load
the oratcl44.dll.
I'd appreciate any suggestions you may have.

Thanks,
Sergio

Sergio,

Make sure that whereever the 'dll's are located is in the windows PATH
system env. variable, or windows can't find them to load them.

-Todd
.



Relevant Pages

  • Re: BadImageFormatException was unhandled
    ... I have a solution with many projects and a substantial reference tree. ... I have a Windows Application project that will build but not run. ... An attempt was made to load ... Otherwise, the 64 bit main exe cannot load any 32bit DLL, include the DLL which uses managed C++ and it calls the win API, or other natvie C 32bit DLL. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: login scripting
    ... unless you're using Windows 98 or something equally ... horrid on the clients. ... > applications that are in the startup group load with no problems. ... > Once the login script completes, the apps load fine, however the users are ...
    (microsoft.public.win2000.general)
  • Re: Search path in LoadLibrary problem ...
    ... He's saying that the DLL is implicitly linked. ... rather than a.dll calling LoadLibrary() to load b.dll. ... Result of "LoadLibrary" is failed, because a.dll windows OS found, ... I think the MSDN pretty well documents the behaviour of the dynamic loader ...
    (microsoft.public.windowsce.embedded.vc)
  • loading oratcl from starkit
    ... This works fine in some windows 2000, but fail in some windows 2000 ... The script fail when it try to load the oratcl44.dll, ... the dll were not copied into c:\temp. ...
    (comp.lang.tcl)
  • performance windows services
    ... We are using a VB.NET dll to execute a process (load and validate a file). ... The same process is sended as a thread from a windows service (also ...
    (microsoft.public.dotnet.framework)