1. François Van Lerberghe
  2. Valentina Database ADK
  3. Samstag, September 28 2019, 12:50 PM
  4.  Abonnieren via E-Mail
I'm unable to create a file (diagnostic report) in the specified folder using the API of Database class "VDatabase.Diagnose(inVerboseLevel, inFile)"
The file is always created next to the app (project) with a name that is the shell path of the folder.

V4RB 9.5.3, Xojo 2019r1.1, MacOS 10.14.6

My code is :

dim f As FolderItem
dim result As Integer
f = SpecialFolder.Temporary.Child("MyDiagnoseReport.txt")
result = self.Diagnose(0, f)


How can I create the file in the specified folder ?
Kommentar
There are no comments made yet.
François Van Lerberghe Akzeptierte Antwort
result = self.Diagnose(0, f)

(self is an instance of Database class)
Kommentar
There are no comments made yet.
François Van Lerberghe Akzeptierte Antwort
And it's the same issue with Database.Create, Database.Clone, ...
Kommentar
There are no comments made yet.
Ruslan Zasukhin Akzeptierte Antwort
Hi Francois,

we will check this
Kommentar
There are no comments made yet.
Ivan Smahin Akzeptierte Antwort
I've tried

MacOS 10.14.6
Examples/API/Database_Diagnose
Xojo 2019 Release 1.1
V4RB 9.6

Everything works as expected.
Kommentar
There are no comments made yet.
François Van Lerberghe Akzeptierte Antwort
Ok. Good news.
I narrowed down the problem and have been able to reproduce with Examples/API/Database_Diagnose *when I build for 32 bits*.
No problem building for 64 bits. As 32 bits is going to be deprecated, I don't think you must worry about that.
Mmmh, except perhaps if we build in Windows 32 bits that is actually allowed (but I had not tested in Windows).

Thank you for your attention.

François
Kommentar
There are no comments made yet.
  • Seite :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories