Re: [scite] OnSave called twice?

40 views
Skip to first unread message

Neil Hodgson

unread,
Mar 14, 2013, 6:44:16 PM3/14/13
to scite-i...@googlegroups.com
Gianfranco:

> OnBeforeSave
> OnSave
> OnSavePointReached
> OnSave
>
> How can I manage to launch the rendering procedure once at save-time? Is it safe to use OnSavePointReached for post-processing in general?

Saves now occur on a separate thread: one OnSave is from the code asking for the save which isn't aware that the save is occurring in the background and the second is from the background save thread completing. While it would be worthwhile avoiding the initial OnSave when threading, background saving can be turned off by setting a suitably large value for it to be active:
background.save.size=1000000

Neil

Neil Hodgson

unread,
May 5, 2013, 5:36:23 AM5/5/13
to scite-i...@googlegroups.com
Me:

> Saves now occur on a separate thread: one OnSave is from the code asking for the save which isn't aware that the save is occurring in the background and the second is from the background save thread completing.

This is now fixed - for threaded saving, OnSave is only called when the save thread has completed.

Neil

Reply all
Reply to author
Forward
0 new messages