> 14.03.2016 20:25, Leyne, Sean wrote: > > - try to open/create file with non-shared access attribute, if success then > get fileID else fail/ throw "file already exists" > > In superserver at this point other thread can attach to this file and get > broken (non-initialized) database.
Actually, not true. Only 1 process can open file using "non-shared" at a time. >From MSDN >(https://msdn.microsoft.com/en-us/library/windows/desktop/aa363874(v=vs.85).aspx) "...An open file that is not shared (dwShareMode set to zero) cannot be opened again, either by the application that opened it or by another application, until its handle has been closed. This is also referred to as exclusive access..." Sean ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140 Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel