I want resurrect this one. We've wrestled with multi-threading and it just keeps freezing the whole app. We've search the execution thread for any visual component and can't find one. And, as bets we can tell we're doing everything correctly. (We open a separate window and have an NVO that we put on another thread to process OLE and file drag and drop).
So, I had the idea that when our app opens it opens the window in question as a separate app so it has it's own thread right from the start. However we need to pass a parameter to the window and looks like PS doesn't support command line parameters.
Any advice on opening a separate window as it's own app using PS? Or just any advice at all? Thanks!
If you execute the non-visual object that performs the multi-threaded task as an object in the GUI thread (i.e. don’t create the NVO using the SharedObjectXxxxxx PowerScript functions) and it does not freeze (it runs and completes without issues), then it is likely that these is some visual work being performed. In Shawn’s case, Outlook is a visual application that was not designed to be run without GUI interaction, so it does not surprise me that he is experiencing this issue. He may need to come up with an alternative solution.
Using OLE, you CAN do Outlook stuff without having anything visual. I THINK it would be possible also in a shared object, but haven't tried myself.