Keep getting "Reload file?" question when editing sql files in HeidiSQL

[expired user #8561]'s profile image [expired user #8561] posted 9 years ago in General Permalink
Regardless of what sql file I edit in HeidiSQL, about two seconds after editing it and saving it, I get the message that the file was modified from outside and a question to reload it.

I already saw this post, but in my case it's not about a network share. All files reside on my local drive.
igitur's profile image igitur posted 8 years ago Permalink

I'm experiencing the same problem. I save a modified .sql file on my local drive and a few seconds later I get a popup asking whether to reload the file.

ansgar's profile image ansgar posted 8 years ago Permalink

I probably can update the underlying logic for file-change-detection, so that the self-caused timestamp is used to ignore that change. Will check if that's possible.

igitur's profile image igitur posted 8 years ago Permalink

Are you polling the file yourself or registering for notifications with the SHChangeNotifyRegister winapi function?

ansgar's profile image ansgar posted 8 years ago Permalink

I'm using Cromis.DirectoryWatch.pas, which has its own implementation. I just see that I did not yet have the latest version of it. Updating it now.

ansgar's profile image ansgar posted 8 years ago Permalink

Oh, the newer version has lots of dependencies to other units/files. Probably not the best idea, and it's also already quite old.

igitur's profile image igitur posted 8 years ago Permalink

Will this help?

http://stackoverflow.com/questions/479770/file-folder-monitoring

ansgar's profile image ansgar posted 8 years ago Permalink

Probably, yes. But I need to dive into that code before I can promise something.

ansgar's profile image ansgar posted 4 years ago Permalink

Probably the current build fixes this issue.

See also this related thread.

Please login to leave a reply, or register at first.