1. Beatrix Willius
  2. Valentina Reports ADK
  3. Friday, January 29 2016, 05:26 PM
  4.  Subscribe via email
In former times whenever I had opened a database in Valentina Studio and then in my app I got an exception. This doesn't happen in V4X 6. Instead opening happens normally and I get an exception when I first do a select. Is this a bug or a feature?

Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
Comment
There are no comments made yet.
Ivan Smahin Accepted Answer
Yes, it is intentionally so. Your app is opening the db in read-only mode.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 1
Beatrix Willius Accepted Answer
Thanks for the information.

What would be the best way to prevent opening in read-only mode? Can I control this? Or I immediately try to write to the database after opening...

Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 2
Ivan Smahin Accepted Answer
No, it is not. vKernel tries to open file in RW mode and in case of failure tries to open it in RO.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 3
Beatrix Willius Accepted Answer
Hi Ivan,

I'd rather have an exception than the database doing something it shouldn't. Okay, I'll go with the idea of trying to write something to the database.

Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 4
Ivan Smahin Accepted Answer
You may ask database - IsReadOnly instead of trying to write down something.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 5
Beatrix Willius Accepted Answer
Very good. Thanks!

Trixi
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 6
  • Page :
  • 1


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