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

Home » Public Forums » archive » basic IDL_IDLBridge question
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: basic IDL_IDLBridge question [message #89311 is a reply to message #89310] Fri, 15 August 2014 14:23 Go to previous message
Jim  Pendleton is currently offline  Jim Pendleton
Messages: 165
Registered: November 2011
Senior Member
On Friday, August 15, 2014 12:22:35 PM UTC-6, rr...@stsci.edu wrote:
> On Friday, August 15, 2014 2:28:28 AM UTC-4, Ken G wrote:
>
>> An IDL_IDLBridge question, separate from all of the memory-leak headaches and whatnot. (I'm on Mac OSX 10.9.4, and IDL 8.3.2)
>
>>
>
>>
>
>>
>
>> I'd like the bridge object to be able to run code from my own procedure libraries. But since it launches without a startup file, my path and other variable definitions are not set up initially within the Bridge.
>
>>
>
>>
>
>>
>
>> So, what are the best ways that people handle this: i.e. to point an IDL_IDLBridge to my procedure libraries, in addition to the basic IDL functions?
>
>
>
> Yngvar's got the right voodoo. But you might also worry about the current working directory. I don't think that the IDL_IDLBridge "environment" knows the cwd (which you might want). So after I issue Yngvar's command (or something nearly similar), I then issue something lie
>
>
>
> bridge->execute,'cd '+cwd
>
>
>
> Just a tip,
>
> Russell

Here's another tip... There's a limited buffer size in the Execute method, one that's smaller than that of the command line. If you set your !path not through preferences (I only use <IDL_DEFAULT>) but through setups associated with your projects, you might find that some directories go missing in your bridge process if you simply try to set bridge->execute, '!path = "' + !path + '"'.

You can work around this by building !path in the bridge process in chunks.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: error with struct expression
Next Topic: GPU implementation for Grey-Level-Co-occurance-Matrix & Haralick Matrix

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

Current Time: Fri Oct 10 02:01:01 PDT 2025

Total time taken to generate the page: 3.51981 seconds