db.flush required?

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Nov 21 01:01:51 CST 2003


on 11/21/03 12:17 AM, jda at jda at his.com wrote:

> Ruslan,
> 
> I (OK, a user) just found a bizarre bug in which a db index was
> corrupted when the db was closed (or at least not saved properly --
> rebuilding the index always fixed the problem, which was a bad sort).
> 
> I found that instead of using
> 
> myDatabase.close
> 
> when the db-containing window was closed, if I used
> 
> myDatabase.flush
> myDatabase.close
> 
> the problem seemed to go away (I'm still waiting confirmation from him).
> 
> I thought db.close automatically flushed if needed? No?

Yes, John.

Close() must flush the whole db at first.

-- 
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
-------------------------------------------------------------



More information about the Valentina mailing list