Re: dll not loading [message #42620 is a reply to message #42578] |
Thu, 17 February 2005 08:22  |
R.G.Stockwell
Messages: 163 Registered: October 2004
|
Senior Member |
|
|
"Rick Towler" <rtowler@nomail.gmail.com> wrote in message
news:w76dnSTJhqgCrYnfRVn-iw@comcast.com...
> R.G.Stockwell wrote:
...
>> Kinda weird how loading the file when IDL opens gets
>> around that though.
>
> You have IDLDE set to "change directory on open" and IDL searches the
> local directory, then the DLM_PATH for your .dlm.
>
> So if you open your file up in IDLDE, the local directory is changed to
> the directory containing your .dlm and IDL finds it. If you compile your
> file from the command line your local directory is unchanged and IDL can't
> find your .dlm.
>
> -Rick
Hi Rick,
that does not seem to explain the behaviour. I do not have
"change directory on open" set, and the current directory is
not set to the directory where the file is located.
Below, the current directory is h:\idllib\boblib\cora\gswm
while the DLM is in h:\idllib\boblib\cora\animation_avi\
(where I clicked on the file in filemanafer, causing IDL to open, and it
does
find the DLM).
I do agree though that IDLDE is different when the file is
called when idl opens, and it does look in that initial directory.
The odd thing is that for years I have used DLLs, and I have
thought that it would look in the program file's directory
for the dll. I have never had to modify the dlm_path.
I guess I almost always start IDL by opening the file from
the file manager. I guess it is just one of those quirks that I
have assumed was a rule.
Here is a session start (from file manager) where the DLM is found.
Version 6.1.1, Microsoft Windows (Win32 x86 m32). (c) 2004, Research
Systems, Inc.
IDL> pwd
% Compiled module: PWD.
h:\idllib\boblib\cora\gswm
IDL> .COMPILE "h:\idllib\boblib\cora\animation_avi\aviKRtest.pro"
% Compiled module: AVIKRTEST.
So anyways, thanks to the group for pointing out the correct way
to find dlls (i.e. create a MyDLLs folder and point !DLM_PATH to it)
Cheers,
bob
|
|
|