Switch to: V9V8V7V6V5

Differences

This shows you the differences between two versions of the page.

valentina:products:adk:api:valentina_class:shutdownmethods [2012/09/13 10:50]
rz
valentina:products:adk:api:valentina_class:shutdownmethods [2017/02/04 06:45] (current)
Line 1: Line 1:
 +====== Valentina Class: Shutdown Methods ======
 +
 +When your application finishes work it should shutdown Valentina components inited on its start. It is a good idea to call shutdown methods in the reverse order to the order of init calls.
 +
 +
 +===== Valentina.Shutdown() =====
 +
 +**Declaration:**
 +
 +<code vb>
 +Shutdown()         
 +</code>
 +
 +**Description:**
 +
 +When you finish working with Valentina, you should shut it down. This method closes all open databases and destroys the cache.
 +
 +**Example:**
 +
 +<code vb>
 +Valentina.Init( 10 * 1024 * 1024, “” , “”  )
 +
 +    ... // some work here
 +
 +Valentina.Shutdown()
 +</code>
 +
 +
 +===== Valentina.ShutdownClient() =====
 +
 +**Declaration:**
 +
 +<code vb>
 +ShutdownClient()
 +</code>
 +
 +**Description:**
 +
 +Executes clean up and finalization of work in the client/server mode.
 +
 +**Example:**
 +
 +<code vb>
 +Valentina.InitClient( 10 * 1024 * 1024 )
 +
 +    ... // some work here
 +
 +Valentina.ShutdownClient()
 +</code>
 +
 +
 +===== Valentina.ShutdownReports() =====
 +
 +**Declaration:**
 +
 +<code vb>
 +ShutdownReports()
 +</code>
 +
 +**Description:**
 +
 +Executes clean up and finalization of work with VREPORT DLL.
 +
 +**Example:**
 +
 +<code vb>
 +Valentina.InitReports( )
 +
 +    ... // some work here
 +
 +Valentina.ShutdownReports()
 +</code>