April White:

> Neil, I have alter the code that handles the replacement of the
> selection when a job completes with this code:
> ...
>                             SetDocumentAt(i);

   SetDocumentAt is not really something that should be called from
the tool thread.

> This code is within SciTEWin::ExecuteOne().  Maybe I should store the
> job output to a variable within the job object and have the
> IDM_FINISHEDEXECUTE handler do the replacement.

   I think its reasonable to move the replacing to the UI thread as
that means you don't have to call any of the buffer methods. I
wouldn't mind the replacement being ignored, like Bruce says, but even
to ignore it, you want to know the current buffer which is not really
thread-safe.

   Neil

_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to