[Oorexx-devel] Problem with ::requires 'BSF4Rexx' library
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, using ::requires BSF4Rexx library causes an exception in the Open Object Rexx Interface. I tried to isolate the problem and create a simple stand-alone testcase, but unfortunately I cannot re-create that problem there. One solution would be to upload the current set of files with a bug report via the tracker, if deemed necessary. Otherwise, this is what I can excerpt that relates to the definitions in case that is sufficient already: // External functions if loaded via Rexx // Build the list of entry points for the routines: RexxRoutineEntry bsf_external_functions[] = { REXX_CLASSIC_ROUTINE( BSF , BSF ), REXX_CLASSIC_ROUTINE( BsfAttachToTID , BsfAttachToTID ), REXX_CLASSIC_ROUTINE( BsfDetach , BsfDetach ), REXX_CLASSIC_ROUTINE( BsfDropFuncs, BsfDropFuncs ), REXX_CLASSIC_ROUTINE( BsfGetTID , BsfGetTID ), REXX_CLASSIC_ROUTINE( BsfInvokedBy, BsfInvokedBy ), REXX_CLASSIC_ROUTINE( BsfLoadFuncs, BsfLoadFuncs ), REXX_CLASSIC_ROUTINE( BsfLoadJava , BsfLoadJava ), REXX_CLASSIC_ROUTINE( BsfQueryAllFunctions, BsfQueryAllFunctions), REXX_CLASSIC_ROUTINE( BsfQueryRegisteredFunctions , BsfQueryRegisteredFunctions ), REXX_CLASSIC_ROUTINE( BsfShowErrorMessage , BsfShowErrorMessage ), REXX_CLASSIC_ROUTINE( BsfUnloadJava , BsfUnloadJava ), REXX_CLASSIC_ROUTINE( BsfVersion , BsfVersion ), REXX_LAST_ROUTINE() }; RexxPackageEntry bsf_package_entry = { STANDARD_PACKAGE_HEADER REXX_INTERPRETER_4_0_0, // anything including and after 4.0.0 will work BSFLIB,// name of the package 4.0, // package information NULL,// no load function NULL,// no unload function bsf_external_functions, // the exported functions NULL // no exported methods }; // The package loading stub. OOREXX_GET_PACKAGE() is a macro that, basically, // defines a function whose name is RexxGetPackage(). On Windows, this // function, RexxGetPackage(), must be in the exports list of the .def file used // when linking this library. OOREXX_GET_PACKAGE(BSFLIB); Would this information be already sufficient or shall I upload the files with a bug report ? ---rony -- Crystal Reports #45; New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty#45;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
Re: [Oorexx-devel] Problem with ::requires 'BSF4Rexx' library
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. Rick On Thu, Apr 23, 2009 at 4:49 PM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: 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, using ::requires BSF4Rexx library causes an exception in the Open Object Rexx Interface. I tried to isolate the problem and create a simple stand-alone testcase, but unfortunately I cannot re-create that problem there. One solution would be to upload the current set of files with a bug report via the tracker, if deemed necessary. Otherwise, this is what I can excerpt that relates to the definitions in case that is sufficient already: // External functions if loaded via Rexx // Build the list of entry points for the routines: RexxRoutineEntry bsf_external_functions[] = { REXX_CLASSIC_ROUTINE( BSF , BSF ), REXX_CLASSIC_ROUTINE( BsfAttachToTID , BsfAttachToTID ), REXX_CLASSIC_ROUTINE( BsfDetach , BsfDetach ), REXX_CLASSIC_ROUTINE( BsfDropFuncs, BsfDropFuncs ), REXX_CLASSIC_ROUTINE( BsfGetTID , BsfGetTID ), REXX_CLASSIC_ROUTINE( BsfInvokedBy, BsfInvokedBy ), REXX_CLASSIC_ROUTINE( BsfLoadFuncs, BsfLoadFuncs ), REXX_CLASSIC_ROUTINE( BsfLoadJava , BsfLoadJava ), REXX_CLASSIC_ROUTINE( BsfQueryAllFunctions, BsfQueryAllFunctions), REXX_CLASSIC_ROUTINE( BsfQueryRegisteredFunctions , BsfQueryRegisteredFunctions ), REXX_CLASSIC_ROUTINE( BsfShowErrorMessage , BsfShowErrorMessage ), REXX_CLASSIC_ROUTINE( BsfUnloadJava , BsfUnloadJava ), REXX_CLASSIC_ROUTINE( BsfVersion , BsfVersion ), REXX_LAST_ROUTINE() }; RexxPackageEntry bsf_package_entry = { STANDARD_PACKAGE_HEADER REXX_INTERPRETER_4_0_0, // anything including and after 4.0.0 will work BSFLIB,// name of the package 4.0, // package information NULL,// no load function NULL,// no unload function bsf_external_functions, // the exported functions NULL // no exported methods }; // The package loading stub. OOREXX_GET_PACKAGE() is a macro that, basically, // defines a function whose name is RexxGetPackage(). On Windows, this // function, RexxGetPackage(), must be in the exports list of the .def file used // when linking this library. OOREXX_GET_PACKAGE(BSFLIB); Would this information be already sufficient or shall I upload the files with a bug report ? ---rony -- Crystal Reports #45; New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty#45;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 -- Crystal Reports #45; New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty#45;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
Re: [Oorexx-devel] Problem with ::requires 'BSF4Rexx' library
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 that either later in the night or sometimes tomorrow evening, when I get a chance to run with a debugger (haven't done that in ages, so it may take some time, although VA should be of great help here). ---rony -- Crystal Reports #45; New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty#45;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
Re: [Oorexx-devel] Problem with ::requires 'BSF4Rexx' library
Assuming you have visual studio and you have a Rexx command that creates the problem, just type devenv /debugexe rexx yada yada yada Hit PF5 to run, and it should stop at the location of the trap. Rick On Thu, Apr 23, 2009 at 5:04 PM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: 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 that either later in the night or sometimes tomorrow evening, when I get a chance to run with a debugger (haven't done that in ages, so it may take some time, although VA should be of great help here). ---rony -- Crystal Reports #45; New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty#45;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 -- Crystal Reports #45; New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty#45;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
Re: [Oorexx-devel] Problem with ::requires 'BSF4Rexx' library
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, but this isn't right: RexxPackageEntry bsf_package_entry = { ... OOREXX_GET_PACKAGE(BSFLIB); That should be: OOREXX_GET_PACKAGE(bsf); -- Mark Miesfeld -- Crystal Reports #45; New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty#45;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
Re: [Oorexx-devel] Problem with ::requires 'BSF4Rexx' library
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, but this isn't right: RexxPackageEntry bsf_package_entry = { ... OOREXX_GET_PACKAGE(BSFLIB); That should be: OOREXX_GET_PACKAGE(bsf); -- Mark Miesfeld -- Crystal Reports #45; New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty#45;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 -- Crystal Reports #45; New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty#45;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
Re: [Oorexx-devel] Problem with ::requires 'BSF4Rexx' library
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, but this isn't right: RexxPackageEntry bsf_package_entry = { ... OOREXX_GET_PACKAGE(BSFLIB); That should be: OOREXX_GET_PACKAGE(bsf); The exception still occurs. Thanks a lot for the hint of how to use Visual Studio to debug, which I obviously will need (will have to continue tomorrow evening, though, already too late and have to get up very early). ---rony -- Crystal Reports #45; New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty#45;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