Menu

#462 OLEObject out parameters retrieved via OLEVariant wrong

v4.0
closed
Classes (182)
5
2012-08-14
2007-11-14
No

When using the OLEObject, parameters to an OLE / COM object can have their value changed and returned to the calling ooRexx script. These are commonly called 'out' parameters.

The OLEVariant class can be used as a transport to return the out parameters to the calling ooRexx script. That was the intent.

There is a bug in that only the first out parameter is returned correctly. If the OLE / COM method invocation has more than one out parameter, the value for the first out parameter is returned, but the rest of the out paramters are not returned.

Discussion

  • Mark Miesfeld

    Mark Miesfeld - 2007-11-14

    Logged In: YES
    user_id=191588
    Originator: YES

    Committed revision 1232.

    One variable, arrItem, was being used for two purposes. As an item from an array and as an index of the array. This of course clobbered one of the values. The fix was to use 2 seperate variables for 2 separate purposes.

     
  • Mark Miesfeld

    Mark Miesfeld - 2010-02-19

    The fix for this item was in the 4.0.0 release.

     

Anonymous
Anonymous

Add attachments
Cancel