Page 1 of 1

Auto-Reload does not always reload

Posted: Tue Aug 19, 2003 5:03 am
by pdenize
I have the following settings in Textpad (4.4.2).

When files are modified - Auto-reload, dont ignore 2sec diffs, do check file size.

I have another program writing syslog info to a file which I have open in textpad. By telling textpad to go to the bottom of the file I can view messages as they arrive. This normally works fine. However, if the program crashes it often writes a bunch of error lines to the file before it dies. Textpad (SOMETIMES) does not show the final few lines. The file must be closed and reopened to see them. of the file needs to be touched.

It appears that the missing lines were probably written while Textpad was reloading.

Is this fixed in a later version, or is there a workaround. At present I run a small job that touches the file every few seconds (UGLY).

Paul

Posted: Tue Aug 19, 2003 9:59 am
by bbadmin
TextPad has to block file change notifications, while it is reloading a file, to prevent race conditions. You can force a reload using the Revert command on the File menu.

Keith MacDonald
Helios Software Solutions

Posted: Wed Oct 15, 2003 2:43 pm
by seebass
Auto Reload does not work properly in the following case (100% reproducable):

1. A log file of some application is opened in TextPad.
2. The log file is replaced by the application with an empty file -> TextPad automatically displays empty file.
3. The new file is written to by the application -> TextPad does NO auto-reload. Reloading manually works fine.


Paul, are the remaining lines displayed when you do a manual reload (File:Revert) or is it really neccessary to close and reopen the file?

Regards,
Bernhard