Re: Where, exactly, do DLL files need to be? [message #61310] |
Fri, 11 July 2008 05:28  |
Mort Canty
Messages: 134 Registered: March 2003
|
Senior Member |
|
|
Jonathan Greenberg schrieb:
> I'm trying to get Morton Canty's MAD code running under ENVI/IDL
> 4.5/7.0 (http://mcanty.homepage.t-online.de/software.html), and it
> requires a dll installed, according to him, in the WINDOWS directory.
> IDL keeps crashing whenever I run this code, and I've tried moving
> the .dll to other locations, and even successfully performed a
> MAKE_DLL after some finagling, all to the same effect. I'm somewhat
> suspicious IDL simply isn't finding the DLL (although why this should
> crash IDL altogether, rather than throwing an error, is a bit
> confusing).
>
> Where do the compiled DLLs need to be in order for code to use them?
> I'm running Windows XP, by the way... Thanks!
After installing IDL 7/ENVI 4.5 I put the DLL in
Program Files\ITT\IDL7.0\BIN\BIN.x86\
That works fine for me. But it also runs on my setup if it's in the
Windows directory. Are you using only the programs on the website and
not mixing with older versions?
Cheers,
Mort
|
|
|
Re: Where, exactly, do DLL files need to be? [message #61312 is a reply to message #61310] |
Fri, 11 July 2008 03:53   |
Spon
Messages: 178 Registered: September 2007
|
Senior Member |
|
|
On Jul 10, 11:51 pm, Jonathan Greenberg <jgrn...@gmail.com> wrote:
> I'm trying to get Morton Canty's MAD code running under ENVI/IDL
> 4.5/7.0 (http://mcanty.homepage.t-online.de/software.html), and it
> requires a dll installed, according to him, in the WINDOWS directory.
> IDL keeps crashing whenever I run this code, and I've tried moving
> the .dll to other locations, and even successfully performed a
> MAKE_DLL after some finagling, all to the same effect. I'm somewhat
> suspicious IDL simply isn't finding the DLL (although why this should
> crash IDL altogether, rather than throwing an error, is a bit
> confusing).
>
> Where do the compiled DLLs need to be in order for code to use them?
> I'm running Windows XP, by the way... Thanks!
My guess would be C:\Program Files\ITT\IDL70
Chris
|
|
|
Re: Where, exactly, do DLL files need to be? [message #61491 is a reply to message #61310] |
Fri, 18 July 2008 01:06  |
Jonathan Greenberg
Messages: 91 Registered: November 2002
|
Member |
|
|
On Jul 11, 5:28 am, Mort Canty <m.ca...@fz-juelich.de> wrote:
> Jonathan Greenberg schrieb:
>
>> I'm trying to get Morton Canty's MAD code running under ENVI/IDL
>> 4.5/7.0 (http://mcanty.homepage.t-online.de/software.html), and it
>> requires a dll installed, according to him, in the WINDOWS directory.
>> IDL keeps crashing whenever I run this code, and I've tried moving
>> the .dll to other locations, and even successfully performed a
>> MAKE_DLL after some finagling, all to the same effect. I'm somewhat
>> suspicious IDL simply isn't finding the DLL (although why this should
>> crash IDL altogether, rather than throwing an error, is a bit
>> confusing).
>
>> Where do the compiled DLLs need to be in order for code to use them?
>> I'm running Windows XP, by the way... Thanks!
>
> After installing IDL 7/ENVI 4.5 I put the DLL in
>
> Program Files\ITT\IDL7.0\BIN\BIN.x86\
>
> That works fine for me. But it also runs on my setup if it's in the
> Windows directory. Are you using only the programs on the website and
> not mixing with older versions?
>
> Cheers,
>
> Mort
Hey Mort! I think there might be some issues with your dll and ENVI
4.5 -- it seems to work fine under ENVI 4.4. The new IDL developer
environment (and runtime?) seems to be pretty different from the
previous versions. Have you had a chance to check out your code under
IDL 7.0 and ENVI 4.5? In the end, I ported the C code for your DLL
and ported it back to IDL to get it to run (I'd be happy to send you
the code if you'd like).
|
|
|