James, The CallProgram() API was not performing any path or extension resolution at all, so I'm a bit puzzled with your statement that this worked on the first invocation...it should not have worked at all. I've fixed this, but I'd like to verify with a sample program from you. If you'll open a bug and attach a program to that, I'll be able to verify my fix corrects your problem.
Rick On Thu, May 14, 2009 at 4:37 PM, James Johnson <j...@iland.net> wrote: > Rony G. Flatscher wrote: >> James, >> >> please lookup "rexxpg.pdf", chapter 9, Rexx C++ Application Programming >> Interfaces. >> >> There you will find the C++ APIs documented, and among the documentation >> you will find the new options and there the option named >> "DIRECT_ENVIRONMENTS" which supplies a context for the purpose you need. >> Chapter 9.13, Command Handler Interface, gives an example. >> >> Instead of RexxStart() you would use RexxCreateInterpreter() and from a >> thread context something like "CallProgram(...)". The new type handler >> then will have the variable context available to it. >> >> Therefore I think that no changes to the ooRexx 4.0 APIs are necessary >> to accomodate to your needs. >> >> HTH, >> >> ---rony >> > Using the new APIs solved all of my problems. > > I have noticed one little annoyance though. When I create the > interpreter instance I specify > the option "EXTERNAL_CALL_EXTENSIONS". This works fine for the initial > program executed > and the programs that it calls. However, when I do an "AttachThread" and > then a "CallProgram" on > the new thread, the program name must have the extension. It looks like > the "EXTERNAL_CALL_EXTENSIONS" are not carried forward to the new thread. > > Is this by design or a bug? > > Thanks > > James Johnson > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Oorexx-devel mailing list > Oorexx-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/oorexx-devel > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel