Problem with WebOpen
Posted: Wed Apr 30, 2014 12:49 pm
I'm not sure it is a bug or my mistake, but the following behavior is suspicious:
in the attached project I wanted to read (later process) ZGE wiki pages. It uses WebOpen component several times, each time for one defined page. At the moment it has 2 pages defined. The application works correctly if started the first time in Preview (Alt+Enter). If started the second time, it reads just one page, and if started 3rd and more times, it does not read any page.
After some more tests I observed that the problem is not in WebOpen component itself, but in recursion of activation the same WebOpen component from its own OnResult section. This recursion is has probably some side effects causing the undesired behavior. In meantime I have another version of the project without recursion, which works fine.
in the attached project I wanted to read (later process) ZGE wiki pages. It uses WebOpen component several times, each time for one defined page. At the moment it has 2 pages defined. The application works correctly if started the first time in Preview (Alt+Enter). If started the second time, it reads just one page, and if started 3rd and more times, it does not read any page.
After some more tests I observed that the problem is not in WebOpen component itself, but in recursion of activation the same WebOpen component from its own OnResult section. This recursion is has probably some side effects causing the undesired behavior. In meantime I have another version of the project without recursion, which works fine.