From: SourceForge.net <no...@so...> - 2006-11-28 15:31:50
|
Bugs item #1604495, was opened at 2006-11-28 06:02 Message generated for change (Comment added) made by miesfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=1604495&group_id=119701 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Interpreter Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Philippe Majerus (phmajerus) Assigned to: Mark Miesfeld (miesfeld) Summary: orxscrpt.dll loses state between ParseScriptText call Initial Comment: Using ooRexx version 3.1.1 MT (Nov 17 2006) through the IActiveScript interface on Windows XP Tablet PC Edition EN-US (NT 5.1.2600 SP2) platform. When the host adds several script blocks, it seems the engine doesn't keep its state between blocks. I believe this goes down to multiple successive calls to IActiveScriptParse::ParseScriptText. It seems each block is executed as a separate script instead of continuation of the existing script. It can be tested in Windows Internet Explorer using several script blocks. The attached ooRexx.hta sample can be run run with MSHTA.exe, and the script can be viewed by opening it in Notepad. Both "Object Rexx" and JScript code is included in the same file to show the expected behavior. When the 2nd Object Rexx block is executed, the i variable is lost. Active Script engines should be able to keep their state between script blocks, and so the second document~write(i) call should have the same effect as the first one. With the current version of ooRexx, it resets the variable. This makes it impossible to parse scripts in multiple blocks. ---------------------------------------------------------------------- Comment By: Mark Miesfeld (miesfeld) Date: 2006-11-28 07:31 Message: Logged In: YES user_id=191588 Originator: NO Hi Philippe, I am going to take a look at this bug and bug # 1567599, which looks like a similar problem. Would you go ahead and assign this to me, miesfeld. Plus, you seem knowledgable in this area, maybe you can help fix this. You state: "Active Script engines should be able to keep their state between script blocks" Is this documented as a requirement? I can't seem to find a lot of documentation on the details of how a script engine is required to behave, do you know of any good documentation? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=1604495&group_id=119701 |