does V4MD back itself up?

Andrew Sinning andrew at learningware.com
Wed Feb 25 16:07:00 CST 2004


ah, thanks.

In the docs it states for the description of CloseDatabase(
gMyDataBase ):

  "Closes the database. Before Close() do Flush() if it needs."


Where you say "do Flush() if it needs", do you mean "does" Flush if
needed, or do you mean that the programmer should "do Flush() if
needed"?


How often should one flush()?  Is there a way to check the amount of
memory being used up to know if it's time to flush()?  Will V4MD
periodically flush itself?

-----Original Message-----
From: valentina-bounces at lists.macserve.net
[mailto:valentina-bounces at lists.macserve.net]On Behalf Of Ruslan
Zasukhin
Sent: Wednesday, February 25, 2004 3:01 PM
To: valentina at lists.macserve.net
Subject: Re: does V4MD back itself up?


on 2/25/04 10:44 PM, Andrew Sinning at andrew at learningware.com wrote:

> I'm can't believe that this is happening, but I have to make sure
before
> I go digging around for an explanation:
>
> Does V4MD have some kind of built-in procedure so that if the Director
> Projector that is connected to a db crashes (or does a force-quit)
> without explicitly disconnecting from the db, then the db reverts to
the
> state it was in when opened?

NO.

You get the latest state after flush()

> I finding the strangest thing:   If I force quit out of my Projector
> without doing
>
>
> dbConn.CloseDatabase()
> ValentinaShutDown()
>
>
> then the next time I open the db it is back where it was the last time
I
> opened it.
>
> Am I out of my mind, or is this a feature?

I assume you have made very small changes, so they fit into Valentina
cache.
And you have not made Flush()

Add flush to you code


--
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------

_______________________________________________
Valentina mailing list
Valentina at lists.macserve.net
http://lists.macserve.net/mailman/listinfo/valentina




More information about the Valentina mailing list