comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Running Java bridge in Envi + IDL mode
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Running Java bridge in Envi + IDL mode [message #79920 is a reply to message #79915] Sat, 14 April 2012 18:12 Go to previous message
Jim  Pendleton is currently offline  Jim Pendleton
Messages: 165
Registered: November 2011
Senior Member
On Friday, April 13, 2012 4:50:42 AM UTC-6, Matej Perše wrote:
> Hi all,
>
> I have a couple of questions regarding Java bridge:
>
> First: I was able to run all my scripts successfully in standard IDL
> server mode, however now the guys I work with have added some parts of
> the code that also needs ENVI.
> I was wondering if any of you has any experience with running the Java/
> IDL bridge in ENVI + IDL mode. Is it even possible to do it?
>
> Second: I have tried to run two separate asynchronous java threads
> which call 2 different IDL functions. However when I check the
> resources the code is always executed in sequence - i.e. one of the
> processes always waits for the second one to finish. I have also
> checked the processes in the Task Manager and it appears that only one
> idl_opserver process is created for both threads. Is there any way/
> flag to tell the IDL to start two separate idl_opserver processes
> which would run in parallel?
>
> Thanks for the answers,
> Matej

Good news and bad news. You shouldn't have any problem calling into ENVI functionality via a Java bridge, as long as you have an ENVI license and your !path is set appropriately.

Now for the (sort of) bad news. IDL is not thread safe. If you're calling into a single IDL process from multiple external processes, you should strongly consider a MUTEX pattern on the Java side to prevent potential conflicts.

Jim P
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Interesting Filled Contour Problem
Next Topic: An IsoContour Question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Dec 03 11:01:20 PST 2025

Total time taken to generate the page: 1.12077 seconds