I have no idea what a 'Scriptcontrol' is, I just assume it has a way
to communicate with your app. If this is true, you can try to use
mutex or event signal to help you.

This is a common issue in multi-thread programming, generally called
'racing'. I suggest you to read some article that discuss about it
before taking action.


On Fri, Mar 27, 2009 at 3:04 AM, jozamm <[email protected]> wrote:
>
> Hi,
>
> I have an application which controls a 2nd application via a
> Scriptcontrol. Using the ScriptControl I launch a rather lengthy
> operation from  the application which I wrote. This works successfully
> however my application screen freezes for the duration of the
> operation I have launched.
>
> How can I keep my application GUI alive? I thought that I could launch
> the lengthy operation via a thread but than the function that launched
> it would keep running and it would crash as it uses the results from
> the operation. Also I have no way of knowing that the operation I
> launched is running.
>
> How can I solve this problem?
>
> Thanks very much,
>
> Regards
>
> Joseph
>



-- 
Best Regards,
David Shen

Reply via email to