--- In [email protected], "swzoh" <sean...@...> wrote:
>
> --- In [email protected], "swzoh" <seanzoh@> wrote:
> >
> > --- In [email protected], "brucexs" <bswitzer@> wrote:
> > >
> > > Does that allow the thread to finish processing the message? Maybe you
> > > need to use replymessage(0) and hope for the best?
> > I believe InSendMessageEx merely checks whether or not in the middle of
> > processing an inter-thread synchronous message, never interferes the
> > processing itself.
> I just realized what you meant. Hmm... ReplyMessage is the only
> choice?
Probably not even that, thoughI'll play with it. Remember, on my
single-threaded version of com plugin.
com.create_object("Scripting.FileSystemObject"), on my machine, works without
problems. Script runs more or less instantaneously.
com.create_object("Word.Application")fails. It takes measurable time to fail
(presumably as word is loaded into memory).
My guess is that comes in while a slowish object is being initialised.
Probably wouldn't help to test for message coming in before the object is
loaded.
Bottom line: my strategy of putting all the com calls on a separate thread is
probably the best way out of the problem.
Speaking of while, another version of com plugin,
com0.63_090611.zip
in
http://tech.groups.yahoo.com/group/power-pro/sfupld?path=/0_TEMP_/AlansPluginProvisional/
see if comPluginDemoScriptFileSysObjDotSyntax.powerpro (in same archive) works
(unloads com at end).
If it fails, could you try it with an empty pcf?
Thanks