This is in v3.1, but exists in all prior versions.
When .OLEObject~new is called with the optional
second parameter (either "WITHEVENTS" or "NOEVENTS")
the code to search for and activate event handling
assumes that pTypeInfo is valid.
This is not true, it is entirely possible that
pTypeInfo is null.
This does no harm unless the OLE Object supports the
IConnectionPointContainer interface, in which case
ooRexx crashes. I ran into this twice yesterday, so
it is probably not that rare of a case.
The attached patch fixes this.
Note that the current implementation of .OLEObject
will only support events if the OLE Object being
proxied supplies a Type Library. There is no real
reason for ooRexx to be this restrictive, so I am
going to open a feature request to change the design.