Hi--I am Dennis WN4AZY, author of the LOGic logging program.
https://www.hosenose.com/
LOGic monitors the WSJT-X ADIF file to update it's own log, much as I imagine that JTAlert does. Starting with JTAlert version 2.50.8, saving a QSO in WSJT-X while JTAlert is running causes LOGic to abort with an IO error:
Application: LOGic.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.IOException
at System.IO.__Error.WinIOError(Int32, System.String)
at System.IO.FileStream.Init(System.String, System.IO.FileMode, System.IO.FileAccess, Int32, Boolean, System.IO.FileShare, Int32, System.IO.FileOptions, SECURITY_ATTRIBUTES, System.String, Boolean, Boolean, Boolean)
at System.IO.FileStream..ctor(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare)
at PDA.NewRecordWatcher.Watch.OnChanged(System.IO.FileSystemEventArgs)
at PDA.FileSystemWatcher.Watcher.OnChanged(System.Object, System.IO.FileSystemEventArgs)
at System.IO.FileSystemWatcher.OnChanged(System.IO.FileSystemEventArgs)
at System.IO.FileSystemWatcher.NotifyFileSystemEventArgs(Int32, System.String)
at System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32, UInt32, System.Threading.NativeOverlapped*)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
Here is my code:
// Windows FileSystemWatcher watches C:\Users\Dennis\AppData\Local\WSJT-X\wsjtx_log.adi. When data is added
// this is called.
using (FileStream fs = new FileStream(_fileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
{
// read the new data out of the file and process it
}
What could have happened between 2.50.7 & 2.50.8 to cause the problem with LOGic? Could you check that JTAlert opens the file for shared access? Any ideas for anything I could try?
Here is the discussion if the issue on our forum.
http://hosenose.com/Foru...to-crash.aspx#post11125
Thanks in advance for your assistance.
73,
Dennis Hevener, WN4AZY