Claudius Sailer
2017-10-30 18:43:21 UTC
Hello,
a customer of my application (MacOS X) has the following problem with a new version. The older application works fine and I doesn’t change anything of this part of the application.
When he starts my application the application try to create a file „Voreinstellungen.xml“ in the same directory where the application is. but he gets an error message that the application can’t create the file or can’t open the file.
this is my code
Dim g as FolderItem
if NOT PrefsWerdenGeladen then
PrefsWerdenGeladen=true
g=GetFolderItem(PrefsDatei)
MsgBox g.AbsolutePath + " " + g.Name + " " + g.Permissions.ToText
if g<> nil and g.iswriteable and NOT g.locked then
If PrefDic.SaveXML(g, False) Then
// Saved
Else
MsgBox "Error saving XML"
End If
elseif g=nil then
//allgemeines Problem
Fehlermeldung(TextFehler003a + PrefsDatei + TextFehler003c)
elseif NOT g.iswriteable then
//Datei ist schreibgeschuetzt oder schon in Benutzung
Fehlermeldung(TextFehler003a + PrefsDatei + TextFehler003b + " (is not writable)")
elseif g.Locked then
//Datei ist schreibgeschuetzt oder schon in Benutzung
Fehlermeldung(TextFehler003a + PrefsDatei + TextFehler003b + " (locked)")
end if
PrefsWerdenGeladen=false
end if
the MsgBox is new testing Code. At the moment I have no screenshot of this. I am waiting for response from my customer.
PrefsDatei is only a string „Voreinstellungen.xml"
do you have any idea where this is coming from and how I can fix this. I have on all of my Computers nowhere this problem and the user sends me screenshots where I can see that permissions are read and write for his user to the folder and the files in this folder. When he copies the Voreinstellungen.xml file in the folder to the Application he catches the same error message but the file has also the permissions read and write for him.
thanks for ideas and help. It would be great also when you have some ideas what code I could add to make testing and finding the problem easier.
It is so difficult to find a solution, when the problem is not reproducible ob my computer.
When I get more informations/feedback I will add it to this post.
Claudius
To unsubscribe, email ***@xojo.com
a customer of my application (MacOS X) has the following problem with a new version. The older application works fine and I doesn’t change anything of this part of the application.
When he starts my application the application try to create a file „Voreinstellungen.xml“ in the same directory where the application is. but he gets an error message that the application can’t create the file or can’t open the file.
this is my code
Dim g as FolderItem
if NOT PrefsWerdenGeladen then
PrefsWerdenGeladen=true
g=GetFolderItem(PrefsDatei)
MsgBox g.AbsolutePath + " " + g.Name + " " + g.Permissions.ToText
if g<> nil and g.iswriteable and NOT g.locked then
If PrefDic.SaveXML(g, False) Then
// Saved
Else
MsgBox "Error saving XML"
End If
elseif g=nil then
//allgemeines Problem
Fehlermeldung(TextFehler003a + PrefsDatei + TextFehler003c)
elseif NOT g.iswriteable then
//Datei ist schreibgeschuetzt oder schon in Benutzung
Fehlermeldung(TextFehler003a + PrefsDatei + TextFehler003b + " (is not writable)")
elseif g.Locked then
//Datei ist schreibgeschuetzt oder schon in Benutzung
Fehlermeldung(TextFehler003a + PrefsDatei + TextFehler003b + " (locked)")
end if
PrefsWerdenGeladen=false
end if
the MsgBox is new testing Code. At the moment I have no screenshot of this. I am waiting for response from my customer.
PrefsDatei is only a string „Voreinstellungen.xml"
do you have any idea where this is coming from and how I can fix this. I have on all of my Computers nowhere this problem and the user sends me screenshots where I can see that permissions are read and write for his user to the folder and the files in this folder. When he copies the Voreinstellungen.xml file in the folder to the Application he catches the same error message but the file has also the permissions read and write for him.
thanks for ideas and help. It would be great also when you have some ideas what code I could add to make testing and finding the problem easier.
It is so difficult to find a solution, when the problem is not reproducible ob my computer.
When I get more informations/feedback I will add it to this post.
Claudius
To unsubscribe, email ***@xojo.com