What would you suggest? I'd be willing to switch things around. That is, have the J startup Ole initialize be for no timeout and then users could use your workaround if they wanted one. In either case this will be documented in the User Manual Ole pages.

----- Original Message ----- From: "bill lam" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Thursday, December 13, 2007 12:54 AM
Subject: [Jprogramming] OLE Server Busy dialog box


I encountered the same problem as described in this article

How to prevent the OLE Server Busy dialog box from appearing during a lengthy COM operation
http://support.microsoft.com/?scid=kb%3Ben-us%3B248019&x=14&y=15

the server busy dialog popup when ole call cannot completed quickly (the default timeout is only 5 seconds). My workaround is to execute
  'ole32 OleUninitialize n'&(15!:0) ''
  'ole32 OleInitialize i x'&(15!:0) <0
when starting my application.

However I'm unsure what are the side effects. Is it possible that J increase the timeout value?

--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to