1. Beatrix Willius
  2. Valentina Reports ADK
  3. Пятница, Январь 29 2016, 05:26 PM
  4.  Подписаться через 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
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
Very good. Thanks!

Trixi
Комментарий
There are no comments made yet.
Ivan Smahin Ответ принят
You may ask database - IsReadOnly instead of trying to write down something.
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
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
Комментарий
There are no comments made yet.
Ivan Smahin Ответ принят
No, it is not. vKernel tries to open file in RW mode and in case of failure tries to open it in RO.
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
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
Комментарий
There are no comments made yet.
Ivan Smahin Ответ принят
Yes, it is intentionally so. Your app is opening the db in read-only mode.
Комментарий
There are no comments made yet.
  • Страница :
  • 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. 0 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories
Omegabundle
  1. 0 subcategories