Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#714 Crash using OLE in LibraryPackage.cpp

v4.0
closed
Rick McGuire
5
2012-08-14
2009-06-01
No

The following program contains an error, that causes a crash:

---------- cut here ----------
myIE = .OLEObject~New("InternetExplorer.Application")

 myIE~navigate("https://www.RexxLA.org")

 myIE~visible = .true
 Call Wait

 say "before: 'myIE~forms'"
 form=myIE~forms       -- wrong statement !
 say "after: form='"form"'"

 exit

-- Wait for IE to complete
Wait:
Do 600 While myIE~readyState < 4 | myIE~busy = 1
Call Syssleep 0.1
End
Return
---------- cut here ----------

Running the above program under the latest build yields the error:

---------- cut here ----------
before: 'myIE~forms'
9 - form=myIE~forms -- wrong statement !
Error 97 running F:\test\ole\bug\test.rex line 9: Object method not found
Error 97.1: Object "an OLEObject" does not understand message "FORMS"
Warning: orexxole.dll DLL process detach, instance count (1) not 0
---------- cut here ----------

In addition it crashes the "Open Object Rexx Interface".

Bringing up the debugger points to "LibraryPackage::locateMethodEntry(RexxString *name)".

To recreate just run the above Rexx program.

Discussion


Anonymous


Cancel   Add attachments