Re: [Oorexx-devel] BSF4Rexx and ooRexx 4.0 : (tiny) adjustments needed - and a bug in rxapi.exe ?

2009-01-04 Thread Rony G. Flatscher
Bonjour Jean-Louis, I uploaded the changes to the patches tracker for BSF4Rexx. Great, thank you very much! There is a new target oorexx4 in the makefile (for Window only). It defines the variable USE_OOREXX4 which is used for conditional compilation (I leave you decide if that's the good

Re: [Oorexx-devel] BSF4Rexx and ooRexx 4.0 : (tiny) adjustments needed - and a bug in rxapi.exe ?

2009-01-04 Thread Rony G. Flatscher
Bonjour Jean-Louis, I confirm that the current distribution built with ooRexx 3.2 works well with ooRexx 4, after the changes made by Rick today. All the scripts in samples run without problem, from rexx or from java. That's really great news! Only Snippet108.rex is not running, I suppose I

Re: [Oorexx-devel] Question about calling an external routine

2009-01-25 Thread Rony G. Flatscher
rob...@garrettfamily.us wrote: (Apologies in advance if I've sent this to an inappropriate list) Is it possible to pass an instance of an object from an externally called routine back to the parent routine? If so, how? Example: Assume two separate REXX routines (separate files):

[Oorexx-devel] Runtime-infos about caller ? (Re: Question about calling an external routine

2009-01-26 Thread Rony G. Flatscher
Hi Robert, rob...@garrettfamily.us wrote: Thanks for the push in the right direction, I actually have it working now. Great! One more quick question just because I'm being lazy at the moment: in LOGGER, is there a function/method I can call that will tell me 1) that it is being invoked

Re: [Oorexx-devel] [DISCUSS] What should be the default numeric digits setting for 64-bit.

2009-02-27 Thread Rony G. Flatscher
; having a solution on 32- and 64-Bit and any other bitness that would allow this program to start to run again *unchanged* would be the most welcomed solution) ! -- cut here -- /* lsplit.cmd (c) 1991, Rony G. Flatscher, donated to the public domain OS/2-REXX 1991-08

[Oorexx-devel] Request for nutshell API examples ... (Re: BSF4Rexx and ooRexx 4.0 : (tiny) adjustments needed - and a bug in rxapi.exe ?

2009-03-09 Thread Rony G. Flatscher
of the question, by creating two small multithreaded nutshell ooRexx programs with which or from which the interfacing should occur. Regards, ---rony Rick McGuire wrote: On Sun, Jan 4, 2009 at 6:33 PM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: Bonjour Jean-Louis, I confirm

Re: [Oorexx-devel] Request for nutshell API examples ... (Re: BSF4Rexx and ooRexx 4.0 : (tiny) adjustments needed - and a bug in rxapi.exe ?

2009-03-09 Thread Rony G. Flatscher
Rick McGuire wrote: Well, it your expectation is a complete running program, then this will have to wait a while until I finish up some other things (many of which happen to be different sample programs). If all you want is answers to some of these questions, then I probably give you a reply

Re: [Oorexx-devel] Request for nutshell API examples ... (Re: BSF4Rexx and ooRexx 4.0 : (tiny) adjustments needed - and a bug in rxapi.exe ?

2009-03-09 Thread Rony G. Flatscher
Rick McGuire wrote: A package is self-contained and completely defined by the table within the package. There's no way to dynamically change those tables, so the best solution for that level of control is to use a different dll stub for ones you don't wish to have loaded for an environment.

Re: [Oorexx-devel] Ad 4.0.0 and RexxStart() ...

2009-03-19 Thread Rony G. Flatscher
Ah, sorry forgot the second observation: Rony G. Flatscher wrote: just reporting two observations: executing a complex Rexx script that repeatedly interacts via Java with OpenOffice, at the end of successfully running it, the RexxStart() function returns the return value 1. This is waht

[Oorexx-devel] Ad 4.0.0 and RexxStart() ...

2009-03-19 Thread Rony G. Flatscher
Hi there, just reporting two observations: while testing the current BSF4Rexx and the latest ooRexx 4.0.0 against OpenOffice.org it seems that executing Rexx programs with RexxStart() repeatedly from the same process, does not start out each time in a fresh environment. It seems that required

Re: [Oorexx-devel] Build machine is donw?

2009-03-24 Thread Rony G. Flatscher
David Ashley wrote: All - Unfortunately, the problem you are seeing with access to the build machine is not a problem I have direct control over. It turns out the the build machine is up and runiing just fine, but the ATT network is timing out when you try to access it. I have opened up

Re: [Oorexx-devel] Build machine is donw?

2009-03-24 Thread Rony G. Flatscher
David Ashley wrote: Rony G. Flatscher wrote: David Ashley wrote: All - Unfortunately, the problem you are seeing with access to the build machine is not a problem I have direct control over. It turns out the the build machine is up and runiing just fine, but the ATT network is timing

[Oorexx-devel] Problem with OpenOffice/BSF4Rexx using the latest ooRexx 4.0.0 (rev. 4323)

2009-03-28 Thread Rony G. Flatscher
Hi there, when running multiple BSF4Rexx programs from Java, then the very first Rexx program will work, but any subsequent Rexx program that gets dispatched via Java in the same process will cause a runtime error. The reason is, that in the second run the .local directory does not have the

[Oorexx-devel] Two questions ad exit-handlers on 3.2 and 4.0

2009-04-02 Thread Rony G. Flatscher
Hi there, in news:comp.lang.rexx Erik Duijs posted a problem that relates to an RXSIO exit. Use-case: Using BSF4Rexx a Java program dispatches a Rexx script, which in turn uses Java to dispatch another Rexx program in the same thread. Each dispatch of a Rexx program from the Java

Re: [Oorexx-devel] Two questions ad exit-handlers on 3.2 and 4.0

2009-04-02 Thread Rony G. Flatscher
Rick McGuire wrote: 2009/4/2 Rony G. Flatscher rony.flatsc...@wu-wien.ac.at: Hi there, in news:comp.lang.rexx Erik Duijs posted a problem that relates to an RXSIO exit. Use-case: Using BSF4Rexx a Java program dispatches a Rexx script, which in turn uses Java to dispatch another

[Oorexx-devel] Another possible problem and maybe a possible solution ... (Re: Problem with prologue of ::requires file not executing

2009-04-05 Thread Rony G. Flatscher
Hi there, Rick McGuire wrote: You have misunderstood what this thread was about. Mike's programs were unaffected, oodialog has already been reworked to remove an old hacky way to get around the old behavior. This really only becomes an issue for programs that stuffed things into .local to

Re: [Oorexx-devel] Another possible problem and maybe a possible solution ... (Re: Problem with prologue of ::requires file not executing

2009-04-05 Thread Rony G. Flatscher
for it. O.K., I'll do my best, but it'll take some time for me to come even close to be able to do that. ---rony On Sun, Apr 5, 2009 at 8:55 AM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: Hi there, Rick McGuire wrote: You have misunderstood what this thread was about. Mike's

Re: [Oorexx-devel] Another possible problem and maybe a possible solution ... (Re: Problem with prologue of ::requires file not executing

2009-04-05 Thread Rony G. Flatscher
Rick McGuire wrote: Ok, I've come up with a compromise. Packages are still loaded and maintained on a process basis, but each interpreter instance will maintain a list of packages that is used by code running in the instance and will ensure that the prologue code gets run when the package is

[Oorexx-devel] Problem with ::requires 'BSF4Rexx' library

2009-04-23 Thread Rony G. Flatscher
Reworking the BSF4Rexx dynamic library, and in a first step defining a RexxPackEntry using a RexxRoutineEntry with 13 entries of type REXX_CLASSIC_ROUTINE only can be compiled and be used with the RxFuncAdd() function. (There are no new type routines defined in the source file yet.) However,

Re: [Oorexx-devel] Problem with ::requires 'BSF4Rexx' library

2009-04-23 Thread Rony G. Flatscher
Rick McGuire wrote: I don't spot anything obviously wrong here, so you'll probably need to upload everything. Alternatively, since I know you occasionally build from source, try running this in the debugger and attach a stack trace to the bug report. O.K., am on the run home. Will try do

Re: [Oorexx-devel] Problem with ::requires 'BSF4Rexx' library

2009-04-23 Thread Rony G. Flatscher
Rick McGuire wrote: Good catch! I wonder what this actually ended up pointing to. Rick On Thu, Apr 23, 2009 at 5:39 PM, Mark Miesfeld miesf...@gmail.com wrote: On Thu, Apr 23, 2009 at 1:49 PM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: I don't know about the crash

[Oorexx-devel] Questions ad an object being used by a different RexxInstance ...

2009-04-26 Thread Rony G. Flatscher
Given two different RexxInstances R1 and R2 running in the same process. In R1 an object O1 is created and saved in .environment. Two questions ad RexxInterpreter context: 1. If from R2 an interaction occurs with O1 (addressed via .environment), in which context does O1 execute, in R1

Re: [Oorexx-devel] Questions ad an object being used by a different RexxInstance ...

2009-04-26 Thread Rony G. Flatscher
Rick McGuire wrote: I'm not sure this question makes any sense. An interaction on an object occurrs in the context of where the interaction is triggered. Objects are just data, and have no knowledge of where they have been created. If one instance stores an object in .environment (generally

Re: [Oorexx-devel] I/O again

2009-04-27 Thread Rony G. Flatscher
Pretty regularly I can get that problem too when opening a command line window, and first thing I would do is using rexxtry and immediately issuing a say statement (typing while rexxtry.rex starts up). Here's an example that works *quite reliably* for me: Microsoft Windows XP [Version

[Oorexx-devel] How to halt all threads of a certain RexxInterpreter instance ?

2009-05-01 Thread Rony G. Flatscher
One is able to use RexxSetHalt(tid) to halt/terminate a Rexx program running in the given tid (thread id). If supplying zero (0) as the tid, then all running Rexx threads will be halted. Now, running multiple RexxInterpreter instances, which may have multiple spawned Rexx threads. How could one

Re: [Oorexx-devel] How to halt all threads of a certain RexxInterpreter instance ?

2009-05-01 Thread Rony G. Flatscher
Rick McGuire wrote: Well, you might try using the Halt() API defined on the interpreter instance. That's great, thank you ! ---rony On Fri, May 1, 2009 at 3:00 PM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: One is able to use RexxSetHalt(tid) to halt/terminate a Rexx

[Oorexx-devel] Adding address mode information to parse version ?

2009-05-01 Thread Rony G. Flatscher
With the advent of ooRexx 4.0 a new, important need arises: determining which addressing mode the running Rexx interpreter uses. This is a vital information, if e.g. one writes installation scripts in ooRexx installing native libraries that must match the bitness of the running (installed) ooRexx

Re: [Oorexx-devel] Starting to think about WSC

2009-05-02 Thread Rony G. Flatscher
Rick McGuire wrote: Ok, since I wasn't tied down with new bug reports this morning, I thought I'd start looking at the orxscript stuff again and start putting together a plan for what we're going to do with this. This is just sort of a random collection of thoughts right now, but I thought

[Oorexx-devel] Example of a rather complex WSH application implemented in ooRexx (Re: Starting to think about WSC

2009-05-02 Thread Rony G. Flatscher
Just in case, backward compatibility is tested eventually with real-life WSH apps. Here is one that queries the OLE interfaces of a given COM class and renders them such that one can create nice printouts of them. If you check the compact mode than you get a reference card kind of rendering.

Re: [Oorexx-devel] Some findings on how orxscript works

2009-05-03 Thread Rony G. Flatscher
A maybe helpful URL, that contains other interesting links: http://en.wikipedia.org/wiki/Windows_Script_Host with a lot of interesting downloads Ah, was too quick, here a few more links, which you may know of already: * http://msdn.microsoft.com/en-us/library/ms950396.aspx: Scripting

[Oorexx-devel] A few questions in the context of RexxCreateInterpreter, LIbraries and co-existence with the classic functions ...

2009-05-04 Thread Rony G. Flatscher
While working on moving BSF4Rexx to the 4.0 APIs and at the same time keeping it backwardly compatible with Rexx scripts using it, I have been running into problems for which the cause is not clear to me (and debugging doesn't really help as the JVM takes over the debugging and I cannot get into

Re: [Oorexx-devel] A few questions in the context of RexxCreateInterpreter, LIbraries and co-existence with the classic functions ...

2009-05-04 Thread Rony G. Flatscher
Rick McGuire wrote: On Mon, May 4, 2009 at 11:43 AM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: While working on moving BSF4Rexx to the 4.0 APIs and at the same time keeping it backwardly compatible with Rexx scripts using it, I have been running into problems for which

[Oorexx-devel] How to add a new bug at Sourceforge ?

2009-05-04 Thread Rony G. Flatscher
Hi there, probably a little bit overworked, combined with a new layout: how, for God's sake, does one add a new bug at https://sourceforge.net/tracker/?atid=684730group_id=119701func=browse? I would like to submit the RexxCreateInterpreter() crash before going to bed, but am stumped at not being

[Oorexx-devel] Bug: Crash RexxCreateInstance() ...

2009-05-04 Thread Rony G. Flatscher
Short of being able to file a new bug in the SF tracker, I uploaded the zip-archive http://wi.wu-wien.ac.at/rgf/rexx/misc/bugs/CrashRexxCreateInterpreter%2d20090504rgf%2ezip with a nutshell version and the readme.txt http://wi.wu-wien.ac.at/rgf/rexx/misc/bugs/readme.txt describing how to re-create

[Oorexx-devel] Compiled dlls uploaded (Re: Bug: Crash RexxCreateInstance() ...

2009-05-05 Thread Rony G. Flatscher
Rick, Please include compiled dlls with this. I don't have the appropriate Java SDK to installed on my machine to compile this. O.K. here is the link to them: http://wi.wu-wien.ac.at/rgf/rexx/misc/bugs/. The CRASH-zip archives contain the respective versions of the DLL, compiled for

Re: [Oorexx-devel] Compiled dlls uploaded (Re: Bug: Crash RexxCreateInstance() ...

2009-05-05 Thread Rony G. Flatscher
Rick McGuire wrote: I'm not seeing a crash with either version of this dll. That's strange! In the zip-archives I have enclosed also the hs_err_pid*.log files that the JVM creates. This is using: * Windows XP, SP 3 * Sun's Java 1.4 (but also occurred on later versions, will retest

Re: [Oorexx-devel] Compiled dlls uploaded (Re: Bug: Crash RexxCreateInstance() ...

2009-05-05 Thread Rony G. Flatscher
Rick McGuire wrote: Ok, I was able to reproduce this using the NODEBUG version and I think I have a fix. Just got a few minutes in between and updated to rev 4598, and yes, the problem is fixed, thank you very much! ---rony P.S.: Does it make any sense to file this as a bug with

[Oorexx-devel] Question ad (automatic?) loading of external routines from a DLL (Re: A few questions in the context of RexxCreateInterpreter, LIbraries and co-existence with the classic functions .

2009-05-05 Thread Rony G. Flatscher
Rick McGuire wrote: On Mon, May 4, 2009 at 11:43 AM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: ... cut ... Question 1: Is there a way to get to the RexxInterpreter instance pointer or RexxThreadContext pointer (which would allow for finding its RexxInterpreter instance

[Oorexx-devel] Problem with an entry of RexxErrorCodes.h

2009-05-05 Thread Rony G. Flatscher
The following code does not compile: context-RaiseException1(Error_Incorrect_call_user_defined, context-String(msg)); ... error mesage: BSF4Rexx.cc(2645) : error C2065: 'Error_Incorrect_call_user_defined' : undeclared identifier The identifier

[Oorexx-devel] Question ad RexxQueryFunction()

2009-05-07 Thread Rony G. Flatscher
Can the RexxQueryFunction(some-function-name)-API determine whether REXX_TYPED_ROUTNEs are loaded or not? ---rony -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning

Re: [Oorexx-devel] Question ad RexxQueryFunction()

2009-05-07 Thread Rony G. Flatscher
Followup question: as RexxQueryFunction() belongs to the pre-4.0 APIs it is not aware of the REXX_TYPED_ROUTINEs that may have been registered (as per the bug tracker comment). Hence I came up with the following attempt to find out whether a routine is loaded or not, but unfortunately it does not

[Oorexx-devel] A few questions ad libraries

2009-05-09 Thread Rony G. Flatscher
Given the following scenario: 1. an interpreter instance is created with RexxCreateInterpreter(), loading a native library ABC via the options argument, all loaded routines will be visible from thereon to every program that gets called 2. using CallProgram() for some

Re: [Oorexx-devel] A few questions ad ...

2009-05-09 Thread Rony G. Flatscher
Rick McGuire wrote: ... cut ... Libraries are NOT the same as ooRexx files loaded via ::requires. They don't have the concept of public_routines and public_classes Libraries don't even define classes, only the code backing methods that can be used in class definitions. A ::requires LIBRARY

[Oorexx-devel] Question ad callback (Re: A few questions ad ...

2009-05-09 Thread Rony G. Flatscher
Thanks for clarifiying. In my current state of the code for BSF4Rexx for the new APIs it becomes possible to refer to ooRexx objects from Java. To do that a RexxProxy is defined at the Java side referring to a ooRexx object, which is registered (and locked) at the native layer. There are two

Re: [Oorexx-devel] Conventioin for app-specific Rexx error reporting ?

2009-05-10 Thread Rony G. Flatscher
Rony G. Flatscher wrote: In the process of turning BSF4Rexx to using the new APIs it becomes possible to raise conditions. Each numbered error category has a message number 900 which allows for supplying any text describing the concrete error. The question: what convention should be used

[Oorexx-devel] Question ad retrieving package object after returning from a RexxThreadContext

2009-05-10 Thread Rony G. Flatscher
Is it possible to retrieve the package object from a RexxThreadContext()? Currently it seems that package objects can only be retrieved via GetMethodPackage(), GetRoutinePackage(), or via a RexxCallContext() using the GetCallerContext() entry PACKAGE. ---rony

[Oorexx-devel] Package unloader not run ?

2009-05-10 Thread Rony G. Flatscher
It seems that the package unloader function does not run if there exists an interpreter instance that has not received a Terminate() request. In this use-case a RexxStart() is used to run a Rexx program, but independently, a RexxCreateInstance() instance got created and just hangs around. Is

Re: [Oorexx-devel] Package unloader not run ?

2009-05-10 Thread Rony G. Flatscher
gets executed via it), does that qualify such an instance to be regarded to be active? If so, when would a Rexx interpreter instance turn to inactive? ---rony On Sun, May 10, 2009 at 1:28 PM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: It seems that the package unloader function

Re: [Oorexx-devel] Question ad retrieving package object after returning from a RexxThreadContext

2009-05-10 Thread Rony G. Flatscher
a RexxThreadContext has no meaning. There is no package associated with a thread context, only specific execution contexts such as a method invocation or a function call. Rick On Sun, May 10, 2009 at 1:21 PM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: Is it possible

Re: [Oorexx-devel] Question ad retrieving package object after returning from a RexxThreadContext

2009-05-10 Thread Rony G. Flatscher
Rick McGuire wrote: Again, there is NO SUCH CONCEPT. And I don't care how many times you ask the question, the answer will remain the same. There are not packages attached to object instances, regardless of where you obtained the object from. There is no concept of a package used for an

Re: [Oorexx-devel] Question ad retrieving package object after returning from a RexxThreadContext

2009-05-10 Thread Rony G. Flatscher
Rick McGuire wrote: Um, noand I have no idea where any of these words came from. There is no such concept as a defineable/settable context environment. So it that sense, yes this is true. It is also pure giberish. I have no idea what you think you're trying to do here. but you

[Oorexx-devel] Calling programs that are passed in a buffer?

2009-05-11 Thread Rony G. Flatscher
To execute a program with an interpreter instance, one can get a thread context and then use -CallProgram(name, array), which expects the program to be stored in a file named name, supplying it with the arguments in array. However, if Rexx scripts are passed via a buffer (e.g. retrieved from

[Oorexx-devel] (Re: Calling programs that are passed in a buffer?

2009-05-11 Thread Rony G. Flatscher
Rick McGuire wrote: There is no CallProgramFromData(), but you can use NewRoutine() to create a routine object and call thatwhich is essentially the equivalent. Thank you! ---rony -- The NEW KODAK i700 Series

[Oorexx-devel] Question ad condition object's traceback list

2009-05-11 Thread Rony G. Flatscher
Analyzing the contents of the condition object in order to create the lines ooRexx creates, if run on the command line and hitting an error. (This is intended to be returned in form of a message string to Java, in case a syntax error occurs on the Rexx side.) It seems that the traceback list

Re: [Oorexx-devel] Question ad condition object's traceback list

2009-05-11 Thread Rony G. Flatscher
Rick McGuire wrote: This is the correct result. The traceback only includes lines back to the point where the condition was trapped. Since your internal routine call inherits the signal on settings from the call, the error trap is triggered while still in the internal routine, so line 2

Re: [Oorexx-devel] CMS/TSO Pipelines support for Rexx

2009-05-12 Thread Rony G. Flatscher
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.

[Oorexx-devel] Question ad context

2009-05-14 Thread Rony G. Flatscher
When creating functions, procedures in native code, and expecting as an argument a context (one of ThreadContext, MethodContext, CallContext, ExitContext), then sometimes the same functionality is needed, but currently one must copy the entire body of the native function/procedure, because there

Re: [Oorexx-devel] Question ad context

2009-05-14 Thread Rony G. Flatscher
Rick McGuire wrote: The only common denominator with the context is the RexxThreadContext. The thread context exists as a member of the other contexts, so you can pass that into common functions by using context-threadContext; Ah, thank you very much! ---rony

[Oorexx-devel] Possible to supply an object to a raised condition ?

2009-05-17 Thread Rony G. Flatscher
When raising a condition via native code, is it possible to supply an (additional) object with the condition to be raised, such that one is able to fetch it from a condition object? The intent is to supply a Java Throwable object with a Rexx condition that gets raised as a result of a thrown Java

[Oorexx-devel] Creating method objects from data may raise a syntax exception

2009-05-22 Thread Rony G. Flatscher
When creating a method object with code supplied from a buffer the following error may appear, if the data contain LF or CRLF: F:\test\o4rx\tests\setmethodtest.rex 1 *-* ? 7 *-* m=.method~new(aha, code) Error 13 running aha line 1: Invalid character in program

[Oorexx-devel] A little question

2009-05-23 Thread Rony G. Flatscher
Can anyone see why the following statement would not retrieve and show the same value from a stem variable? saybsf.methodName=pp(bsf.METHODNAME) pp(bsf.[METHODNAME]) The default value for stem is .nil, the output from the above statement is: bsf.methodName=[The NIL object]

Re: [Oorexx-devel] A little question

2009-05-23 Thread Rony G. Flatscher
mechanism is basically operational. Still a lot to do and of course, an awful lot to test, but looking promising so far! ---rony On Sat, May 23, 2009 at 4:26 PM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: Can anyone see why the following statement would not retrieve and show

[Oorexx-devel] Problem with SysStemSort, but ...

2009-05-24 Thread Rony G. Flatscher
Got an exception with applying SysStemSort(), the debugger pointing to RexxLocalVariables.hpp, inline function: inline RexxVariable *get(size_t index) { return locals[index]; } with index=0. Unfortunately, I am not able to create an isolated test case. If I write the stem's values into a

Re: [Oorexx-devel] Problem with SysStemSort, but ...

2009-05-25 Thread Rony G. Flatscher
Rick McGuire wrote: I just thought of one more thing that could cause the error you're seeing. If you do an AttachThread() at some point and neglect to do a corresponding DetachThread() before returning to your caller, you'll end up with a corrupted activaation stack that will result in

[Oorexx-devel] Another observation (Re: Problem with SysStemSort, but ...

2009-05-25 Thread Rony G. Flatscher
Rick, when invoking that program via Java, then it works without a problem! If invoked via Java then in the native layer an AttachThread() is invoked, a Routine object is created and invoked with CallRoutine(), followed by a matching DetachThread(). ---rony Rony G. Flatscher wrote: Rick

Re: [Oorexx-devel] Questions ad Halt() and Terminate(), as well as RexxSetHalt()

2009-05-25 Thread Rony G. Flatscher
Rick McGuire wrote: Terminate() does not terminate threads, it terminates the interpreter instance. The termination call can only be made on the original thread that created the interpreter instance and will wait for any other threads to terminate before shutting down the instance. O.K.:

Re: [Oorexx-devel] Another observation (Re: Problem with SysStemSort, but ...

2009-05-25 Thread Rony G. Flatscher
by BSF4Rexx. ---rony On Mon, May 25, 2009 at 5:08 AM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: Rick, when invoking that program via Java, then it works without a problem! If invoked via Java then in the native layer an AttachThread() is invoked, a Routine object is created

[Oorexx-devel] Question ad compiler output for debugging

2009-05-25 Thread Rony G. Flatscher
Currently, whenever I run into an exception under the control of Java, the MSVS2008 Professional debugger does not get triggered, instead a file hs*.log gets created with all sort of interesting information. Eg. (this one is from pressing Ctl-c in a hanging ooRexx program, that got started via

Re: [Oorexx-devel] Question ad compiler output for debugging

2009-05-25 Thread Rony G. Flatscher
Rick McGuire wrote: Have you tried building a a debug vsrsion of ooRexx to run with? If you're running from an installed version, build the debug version and drop the new .exes and dlls in the install location, along with the .pdb files containing the debug symbols. Yes, I always build

Re: [Oorexx-devel] Question ad compiler output for debugging

2009-05-25 Thread Rony G. Flatscher
Jean-Louis, Since you have EXCEPTION_ACCESS_VIOLATION (0xc005) you can try to select the Access violation in Debug / Exceptions, under Win32 exceptions. See http://msdn.microsoft.com/en-us/library/d14azbfh.aspx It's written : The debugger can break execution of your application

Re: [Oorexx-devel] Problem with SysStemSort, but ...

2009-05-26 Thread Rony G. Flatscher
Rick McGuire wrote: I just thought of one more thing that could cause the error you're seeing. If you do an AttachThread() at some point and neglect to do a corresponding DetachThread() before returning to your caller, you'll end up with a corrupted activaation stack that will result in

Re: [Oorexx-devel] Problem with SysStemSort, but ...

2009-05-26 Thread Rony G. Flatscher
Rick McGuire wrote: This is exactly the last scenario I described to you yesterday and you adamantly declared that RexxCreateInterpreter was not getting called. There is an association between a thread and the top-most thread context that is created on that thread. Once you call

[Oorexx-devel] Ad unloader

2009-05-27 Thread Rony G. Flatscher
Under what conditions would a defined unloader function be run by the runtime? What could be reasons that it does not get invoked? Reason: when running a test-program via rexx.exe, the unloader runs at the end of the program. When running via Java, the unloader does not run (I seem to remember

Re: [Oorexx-devel] Ad unloader

2009-05-27 Thread Rony G. Flatscher
that briefly describes the problem and how to run the showcase. Will take a while before all chunks are uploaded. ---rony On Wed, May 27, 2009 at 8:38 AM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: Under what conditions would a defined unloader function be run by the runtime

[Oorexx-devel] Question ad a possibility of shutdown hooks (Re: Problem with

2009-05-28 Thread Rony G. Flatscher
Rick McGuire wrote: Note that you really have very limited ability to do anything in a package unloader. At this point, everything is shutting down. All of the instances have been cleaned up already and this is one of the very last steps in the process of cleaning thiings up. I doesn't

[Oorexx-devel] Ad loading libraries

2009-06-03 Thread Rony G. Flatscher
Just for the record: currently, rev. 4751, debug version, when creating Rexx interpreter instances on different (Java) threads on Windows, the loader function of BSF4Rexx gets loaded for each thread. This behaviour may be fine (actually I would prefer it), however, I think that in the past a DLL

Re: [Oorexx-devel] Ad loading libraries

2009-06-03 Thread Rony G. Flatscher
Rick McGuire wrote: I don't find any code path that would cause that to happen, so I'll need a test case that recreates the problem. O.K., but it will take some time. ---rony -- OpenSolaris 2009.06 is a cutting

Re: [Oorexx-devel] Ad loading libraries

2009-06-03 Thread Rony G. Flatscher
Rick McGuire wrote: If sounds like you already have something that reproduces this. You can email this directly to me once you've opened a bug if it is too large to attach. O.K, thanks. One problem being, that I need to pack up all pieces of Java classes and test them stand-alone in order

[Oorexx-devel] Question on Halt() and possibility of interfering with Java's signal handling?

2009-06-04 Thread Rony G. Flatscher
Having proceeded to a point in which I am confident that dispatching Rexx intepreter instances on separate Java threads is stable, I turned back to a use case from a BSF4Rexx user who tries to halt Rexx threads from Java. In the 4.0 API version the Halt() API of the interpreter instance is used

Re: [Oorexx-devel] Question on Halt() and possibility of interfering with Java's signal handling?

2009-06-04 Thread Rony G. Flatscher
Rick McGuire wrote: Halt() does not use any signalling mechanisms. It only iterates through the threads associated with each instance and sets a flag indicating that a halt condition needs to be raised. That flag is detected at instruction boundaries and the condition gets raised. That's

Re: [Oorexx-devel] Question on Halt() and possibility of interfering with Java's signal handling?

2009-06-05 Thread Rony G. Flatscher
is not much else involved with that API. Rick On Thu, Jun 4, 2009 at 5:34 PM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: Rick McGuire wrote: Halt() does not use any signalling mechanisms. It only iterates through the threads associated with each instance and sets a flag

[Oorexx-devel] Question ad unloader function

2009-06-07 Thread Rony G. Flatscher
Currently, I have been trying to debug the following problem: unloader function does not run. Scenario #1: there is the BSF4Rexx.dll which contains a loader and an unloader function. If rexx.exe starts a Rexx program that then loads the BSF4Rexx.dll, the loader runs and when the Rexx program

Re: [Oorexx-devel] Question ad unloader function

2009-06-07 Thread Rony G. Flatscher
(). ---rony On Sun, Jun 7, 2009 at 10:06 AM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: Currently, I have been trying to debug the following problem: unloader function does not run. Scenario #1: there is the BSF4Rexx.dll which contains a loader and an unloader function

[Oorexx-devel] Uninits not running

2009-06-14 Thread Rony G. Flatscher
Currently, the BSF4Rexx.dll works as intended, if Rexx scripts are started via rexx.exe, and the dll is loaded via rexx.exe. The loader function runs when BSF4Rexx gets loaded, the uninits and the unloader function run, upon termination of the Rexx script. In use case # 2, Java loads

Re: [Oorexx-devel] Uninits not running

2009-06-14 Thread Rony G. Flatscher
Rick McGuire wrote: All of the symptoms you describe would suggest you are not terminating your interpreter instances correctly...but that's what I suggested earlier... Yes. Because of that I made sure (and will make sure with the planned nutshell example) that Terminate() is invoked in the

[Oorexx-devel] Question ad placing ::Requires

2009-06-23 Thread Rony G. Flatscher
It seems that ooRexx 4.0 removed the necessity of placing ::Requires directives before any other directive. Two questions: * Is this intended? * If intended, is the behaviour like this? If not, what is the specified behaviour (I could not find the respective documentation, but

Re: [Oorexx-devel] ODBC/MySQL Bounty Question

2009-07-02 Thread Rony G. Flatscher
is available to you. HTH, ---rony -- __ Prof. Dr. Rony G. Flatscher Department Informationsverarbeitung und Prozessmanagement Institut für Betriebswirtschaftslehre und Wirtschaftsinformatik Wirtschaftsuniversität Wien

Re: [Oorexx-devel] Discussion: Remote ooRexx Classes

2009-07-22 Thread Rony G. Flatscher
Remote invocation has always to deal with how to marshall and unmarshall argument and return values in order to transport the values insulated from operating system and hardware architecture dependencies. In their origins a lot of those infrastructures (including programming language

[Oorexx-devel] Question 1 ad CString(): not leaving \n untouched?

2009-08-01 Thread Rony G. Flatscher
If a some const *char string contains the LF character (\n, 0x0a, 0d10) and one uses CString(str) to create a Rexx string, then say'ing that Rexx string would not cause a line break at the \n-character, rather a question mark (?) is displayed instead. [At the same time a TAB char (\t, 0x09, 0d09)

Re: [Oorexx-devel] Question 2 ad CString(): not leaving UTF chars untouched ?

2009-08-02 Thread Rony G. Flatscher
Hi Mark, first of all: thank you *very* much for your efforts and describing your findings! Just was able to come back to my problem and in the light of your findings explicitly testing the conversion from const char string to a RexxString and vice-versa, and indeed it seems that the round trip

Re: [Oorexx-devel] Question 1 ad CString(): not leaving \n untouched?

2009-08-02 Thread Rony G. Flatscher
Hi Mark, This is surely due to whatever you are using to display your string. Using the same Rexx code as in my other post, here is what I get: ... cut ... Which is exactly correct. This is the C++ code: ... cut ... Again, thank you very much for looking into it. Went back into the

Re: [Oorexx-devel] Question 1 ad CString(): not leaving \n untouched?

2009-08-02 Thread Rony G. Flatscher
As you can see the line reading Error 98.900 displays '?' instead of breaking the line at that position. The BSF4Rexx support will create rather well documented error messages, where lines need to be split up in order to be easily readable. (Therefore newline characters are part of the

Re: [Oorexx-devel] Native API, call context, method context, ...

2009-09-02 Thread Rony G. Flatscher
Mark Miesfeld wrote: Probably only Rick that can help on this, maybe someone else has some ideas. In ooDialog there are some documented external functions that need to stay, because well they were documented. grin So, I started out to convert them to typed routines as part of my effort to

[Oorexx-devel] Request for ideas ...

2009-09-02 Thread Rony G. Flatscher
Hi there, for quite a few weeks I have been trying to trace down one particular nasty problem with the new BSF4Rexx 4.0, which occurred only under Linux so far (32- and 64-bit), but was able today to get it under Windows as well. It seems that this problem occurs under the following scenario:

Re: [Oorexx-devel] Request for ideas ...

2009-09-03 Thread Rony G. Flatscher
Hi René, stack full? this is what the exception code hints at. Remember there is also a native code stack involved here. Thanks for the idea, I increased the stack size by 50% (from 40960 to 65636) to no avail. Here are the last lines of the debug output, indicating that we arrived at the end

[Oorexx-devel] Trying to create a new build from trunk ... (Re: Request for ideas ...

2009-09-03 Thread Rony G. Flatscher
Mark, I would suggest that if you have found a scenario where you are pretty sure you always get the crash, you try that scenario using an interpreter built from trunk. thank you very much for this idea! Tried to create it, but got an error while building oodialog (using rev. 5135 from

Re: [Oorexx-devel] Trying to create a new build from trunk ... (Re: Request for ideas ...

2009-09-03 Thread Rony G. Flatscher
Mark Miesfeld wrote: Pull in my last commit and see if it works. Thanks, that solved the problem, could compile a new version. Running it will exhibit the same behaviour (while cleaning up the Rexx proxy cache within BSF4Rexx; Rexx program output from ooRexxUnit in bold): ... cut ...

[Oorexx-devel] Possible (future) solution ? (Re: Trying to create a new build from trunk ... (Re: Request for ideas ...

2009-09-03 Thread Rony G. Flatscher
Hi there, if the cause of the problem is really the overlapping of a callback from Java into BSF4Rexx employing ooRexx, and ooRexx having started to shutdown and removing/reclaiming objects, then one possible solution may be: * allow to be notified, when ooRexx is about to shutdown, such

[Oorexx-devel] Questions, RFI on multithreading

2009-09-12 Thread Rony G. Flatscher
Hi there, trying to get BSF4Rexx 4.0 into beta-test shape (32-bit and 64-bit Windows and Linux versions). Using developed test units I have been able to assert that it runs stable, with the exception of employing multithreading heavily. 32-bit means: operating system is 32-bit, hence ooRexx and

Re: [Oorexx-devel] Questions, RFI on multithreading

2009-09-12 Thread Rony G. Flatscher
Mark, thanks. You should be able to chase the buffer overflow down fairly easily. *** buffer overflow detected ***: rexx terminated === Backtrace: = /lib/libc.so.6(__fortify_fail+0x37)[0x7fb7374ee2c7] /lib/libc.so.6[0x7fb7374ec170] /lib/libc.so.6[0x7fb7374eb519]

  1   2   3   4   5   6   7   8   9   10   >