#1192 .OLEObject for Microsoft.XMLDOM not working correctly in REXX 4.1.3.

v4.2.0
closed
oleObject (4)
complete
2
2014-04-15
2013-07-24
No

.OLEObject for Microsoft.XMLDOM not working correctly in REXX 4.1.3.

The following code works correctly in REXX 4.1.1 32-bit (on Win 2003), and fails in REXX 4.1.3, both 32-bit (WinXP and Win 2003) and 64-bit (Win 7).

/ REXX /

Signal On NoValue

Call RxFuncAdd "SysLoadFuncs", "RexxUtil", "SysLoadFuncs"
Call SysLoadFuncs

Parse Version V
Say V
Say "Calling .OLEObject~new"
xmlDoc = .OLEObject~new("Microsoft.XMLDOM");
Say "Returned from .OLEObject~new"
Say "xmlDoc~async="xmlDoc~async
Say "Setting xmlDoc~async"
xmlDoc~async=0
Say "Back from Setting xmlDoc~async"
Say "xmlDoc~async="xmlDoc~async

Exit

NoValue:
Parse Source . . NoValue_FN NoValue_FT NoValue_FM .
Parse Version . NoValue_langlevel .
If NoValue_langlevel > 3.45
Then
Do
Call LineOut "stderr", "NOVALUE raised at line" sigl "in" NoValue_FN NoValue_FT NoValue_FM
Call LineOut LogFileName, "NOVALUE raised at line" sigl "in" NoValue_FN NoValue_FT NoValue_FM
Call Stream LogFileName,"C","FLUSH"
Say "NOVALUE raised at line" sigl "in" NoValue_FN NoValue_FT NoValue_FM
Call LineOut "stderr", " because_variable_'"Condition("D")"'does_not_have_a_value.Line_"sighl
Call LineOut LogFileName, " because_variable_'"Condition("D")"'_does_not_have_a_value.
Line
"sighl
Call Stream LogFileName,"C","FLUSH"
Say " because_variable_'"Condition("D")"'does_not_have_a_value.__Line"sighl
End
Else
Do
Call LineOut "stderr", "NOVALUE raised at line" sigl "in" NoValue_FN NoValue_FT NoValue_FM"."
Call LineOut LogFileName, "NOVALUE raised at line" sigl "in" NoValue_FN NoValue_FT NoValue_FM"."
Call Stream LogFileName,"C","FLUSH"
Say "NOVALUE raised at line" sigl "in" NoValue_FN NoValue_FT NoValue_FM"."
End
Return 8

Works OK in 4.1.1 32-bit:

C:>RexxBug.rex
REXX-ooRexx_4.1.1(MT) 6.03 16 May 2012
Calling .OLEObject~new
Returned from .OLEObject~new
xmlDoc~async=1
Setting xmlDoc~async
Back from Setting xmlDoc~async
xmlDoc~async=0

Fails in 4.1.3 32-bit and 64-bit:

C:>RexxBug.rex
REXX-ooRexx_4.1.3(MT) 6.03 4 Jul 2013
Calling .OLEObject~new
Returned from .OLEObject~new
13 - Say "xmlDoc~async="xmlDoc~async
Error 97 running T:\WebsensorUA\RexxBug.rex line 13: Object method not found
Error 97.1: Object "an OLEObject" does not understand message "ASYNC"

I don't know what it does in 4.1.2.

1 Attachments

Discussion

  • Chuck Tribolet

    Chuck Tribolet - 2013-07-24

    This MAY be a dupe of 1188.

     
  • Mark Miesfeld

    Mark Miesfeld - 2013-07-24
    • labels: OLEObject Microsoft.XMLDOM --> oleObject
    • status: open --> pending
    • assigned_to: Mark Miesfeld
    • Group: 4.1.3 --> 4.1.4
     
  • Mark Miesfeld

    Mark Miesfeld - 2013-07-24

    This has the same root cause as bug #1188 OLE failure on 4.1.3

    The bug is fixed:

    C:\work.ooRexx\bug.work\ole.fails.4.1.3>rexx RexxBug.rex.bak
    REXX-ooRexx_4.1.4(MT) 6.03 16 Jul 2013
    Calling .OLEObject~new
    Returned from .OLEObject~new
    xmlDoc~async=1
    Setting xmlDoc~async
    Back from Setting xmlDoc~async
    xmlDoc~async=0

    and the fix will be in the next bug fix release of ooRexx

     
    • Comment has been marked as spam. 
      Undo

      You can see all pending comments posted by this user  here

      Anonymous - 2013-10-28

      Could you please give an indication as to when the next bug fix release might be ready ?
      If it is not planned for release in the near future, would it be possible to get a patch for version 4.1.3 so that this particular problem can be solved?

       
  • Mark Miesfeld

    Mark Miesfeld - 2013-10-29

    The next bug fix release will probably go into beta before Christmas, maybe sooner.

    If you can build from source, this branch will be the basis of the next bug fix release:

    https://svn.code.sf.net/p/oorexx/code-0/main/branches/4.1/trunk

    it currently contains the fixes for all bugs in the "pending" state and "milestone" == 4.1.4. Otherwise it is exactly the same as ooRexx 4.1.3

     
  • Mark Miesfeld

    Mark Miesfeld - 2014-02-15
    • Pending work items: none --> complete
    • Group: 4.1.4 --> v4.2.0
     
  • Mark Miesfeld

    Mark Miesfeld - 2014-02-15

    This is in ooRexx 4.2.0. The 4.2.0 release candidate is available now on SourceForge.

     
  • Rick McGuire

    Rick McGuire - 2014-04-15
    • status: pending --> closed
     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks