How to test for network connection dropouts
Posted: Tue Aug 21, 2018 2:41 am
I have an odd problem. A recent release of Windows 10 by an education department to several hundred schools, who are my customers, has frequent network connection dropouts to the school's curriculum server. The dropouts causes my file-intensive (SQLite) library management system to crash several times a day with the dreaded Windows "Prog.exe has stopped working" message. This can happen with any file access statemet, GetFileSize, ReadFile, RunProgram even the Windows API call GetFileAttributes. It is not a PureBasic problem. If the program runs from the local hard drive, no crashing. Rumours are spreading that my software does not work on Windows 10, which is not true as hundreds of other users do not have this problem.
Does anyone know a safe, fast way to check for a good network connection within a running program? Something that would not cause a crash itself and could be used to avoid it. What type of PureBasic code could be used? Mr Google has not been terribly helpful.
Thanks.
Does anyone know a safe, fast way to check for a good network connection within a running program? Something that would not cause a crash itself and could be used to avoid it. What type of PureBasic code could be used? Mr Google has not been terribly helpful.
Thanks.