Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data.close() method

 
Aruna Raghavan
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
It is very obvious that in the local mode, when the app is closed, the db.db file should be closed. However, in the case of the Remote server, this can only be closed if the entire server is shutdown. Is there anything special about killing the remote server? I mean, if you kill the server, the client could detect the exception and give up. But is there anything else that needs to be done?
Thanks.
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

But is there anything else that needs to be done?

The obvious choice is that nothing should happen if a remote client calls close().
Eugene.
 
Daniela Ch
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
not even release the locks?
technically he can not have a lock if he is calling close, but I dont know, an empty method always bothers me...
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

not even release the locks?

If you are doing it right, your locks are always released, no matter what:

Eugene.
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Eugene Kononov:
If you are doing it right, your locks are always released, no matter what
But if you're coding for reuse (is that still in the instructions?), you cannot rely on clients always doing it right.
- Peter
[ January 06, 2003: Message edited by: Peter den Haan ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic