LiveCode flush precedure

Ruslan Zasukhin ruslan_zasukhin at valentina-db.com
Thu Jul 12 01:11:43 CDT 2012


On 7/11/12 9:18 PM, "william humphrey" <bill at bluewatermaritime.com> wrote:

Hi William, 

> This is what happens when my LiveCode stack closes (called on closeStack)
> 
> function shutdown
> 
>    get VConnection_Close( gConnection )
> 
>    get VServer_Destructor( gConnection )
> 
>    -- this crashes IDE sometimes
> 
>     get Valentina_ShutDownClient()
> 
>  end shutdown
> 
> 
> function DBClose isDestructing
> 
       flush here.
>    get VDatabase_Close( gDatabase )
> 
>    if isDestructing = true then
> 
>       put VDatabase_Destructor( gDatabase ) into gDatabase
> 
>    end if
> 
>    put "Database Closed" into field error_field
> 
> end DBClose
> 
> ----------------------------------------------
> 
> 
> 
> -- obviously this does not flush the data that is held in memory. Can anyone
> suggest changes? Presently my data is only saved because I have "Flush Each
> Changes" set to true in the Server Parameters.


Yes, although for LOCAL database, db.close() cause flush at first,
For client/server seems no.


We think about adding this into vserver:
  so when client says db.CLOSE, vserver will do flush,
  but not close db on own side to keep it open for other users.


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list