Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


OLE Blocked while hBrowse is Active

Keywords:   OLE blocked hBrowse

Question:

I am running two instances of a Winbatch script. The first instance of the script runs and displays a message box. While the first message box is on the screen, the second instance of the script runs to completion and displays its HTML dialog page. Both are invoked via OLE objects.

Then I changed the script slightly so that the second instance of the script runs Notepad rather than Winbatch.

The WinBatch script invoked from the first OLE object runs to completion and displays its HTML page. With the HTML page displayed, Notepad will NOT run when invoked from the second OLE object. The moment the HTML dialog page from the WinBatch script is closed, Notepad runs and opens its window.

Answer:

Indeed. It seems that somehow the use of the HTML dialog is preventing the second OLE object from starting up.
  1. Using the scenario where the first oject open the html dialog and the second object runs notepad....

  2. What happend when you display the html dialog, try to run notepad, then click on a link or button on the html dialog. Does that allow Notepad to continue.

  3. Skipping ahead here (after 14 more rounds of questions on this) it appears that it is simply not going to work. Maybe don;t use OLE objects to launch the winbatch scripts?

  4. What if you just drag the scripts directly into Word?

Question:

When I click on a link in the HTML dialog from the first script it *does* allow Notepad to run. The same thing happens for the second instance of the WinBatch script. The second script runs once a link is clicked on the first HTML dialog. OLE seems to be blocked only while the hBrowse function is active.

>Maybe don't use OLE objects to launch the winbatch scripts?

Sorry, that won't be an option. We already have hundreds of these embedded objects in documents that call an earlier version of this script. We want to enhance the earlier version to take advantage of the great new HTML dialogs. We'll probably put a statement at the top of the HTML dialog warning the user to close the dialog first before invoking other links. We really want to use the HTML dialogs. :-)

>What if you just drag the scripts directly into Word?

No effect, the second OLE object is blocked while the first HTML dialog is on screen.

Thanks for your feedback (and patience). I hope the developers can keep this in the back of their minds as they work on future versions of the HTML extender just in case there is an easy fix somewhere.


Article ID:   W14131
Filename:   OLE Blocked while hBrowse is Active.txt