Hi, After investigating the problem further we found out that the use of the command OPEN DATA FILE was causing the error Accidently (not completely of course) I stumbled upon the "Use new architecture for application deployments" compatibility option since 4D v15 R4 This was exactly the option I was looking for, and must have overlooked this.
This option causes 4D to write the location of the last data file opened in the application's user preferences folder, and not in de structure file https://docs.4d.com/4Dv17R5/4D/17-R5/Data-file-management-in-final-applications.300-4163571.en.html Gr, Piotr -----Oorspronkelijk bericht----- Van: Piotr Chabot Stadhouders <[email protected]> Verzonden: Tuesday, 8 October 2019 16:13 Aan: 4D iNug Technical <[email protected]> CC: Piotr Chabot Stadhouders <[email protected]> Onderwerp: RE: Database … is write protected (AGAIN) Hi, As explained in a previous post we have problems launching 4D Volume desktop 64-bit app more than once in a citrix environment. We solved this in the past by using a virtual store on Windows. However, this is not supported anymore with 64-bit applications. Microsoft states: "Virtualization supports only 32-bit applications. Non-elevated 64-bit applications simply receive an access denied message when they attempt to acquire a handle (a unique identifier) to a Windows object. Native Windows 64-bit applications are required to be compatible with UAC and to write data into the correct locations. https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/dd835540(v=ws.10)?redirectedfrom=MSDN " Shouldn't 4D respect this? Or can we do something ourselves to solve this problem? -----Oorspronkelijk bericht----- Van: Piotr Chabot Stadhouders <[email protected]> Verzonden: Thursday, 3 October 2019 09:52 Aan: 4D iNug Technical <[email protected]> CC: Piotr Chabot Stadhouders <[email protected]> Onderwerp: Database … is write protected (AGAIN) Hi, 4D v17R5 64-bit, Windows We use a 4D Volume Desktop application in a Citrix environment It seems that in 64-bit there is no possibility to use a Virtual Store in Windows So, when launching our app for the second time, we get the message “Database … is write protected” This is strange because we have set the option “"Do not display warning when structure file is in read only"” This has nothing to do with the datafile, because for this we already use the “Default Data/Default.4DD” technique and this works fine Because we don’t use the 4D datafile we have no problems for the structure file and datafile to be in read only mode We are able to work with our application in a normal way, except for the annoying message at startup. Nowadays I think it is completely normal to start applications in a citrix environment by different users in protected mode, so tips for using 4D server is a no go So, does anybody know what to do about this annoying message, or where it comes from? Thanks, Piotr ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

