[V4RB] How to detect if database is already opened?

Peter De Berdt peter.de.berdt at pandora.be
Tue Jun 3 10:18:50 CDT 2003


>on 6/1/03 20:11, Wonder Fef at wonderfef at noos.fr wrote:
>
>Hi Wonder,
>
>>  I need my application to detect if a database is not already opened by
>>  another application.
>
>>  Because if I try to open an already opened vdb, ReabBasic (or the compiled
>>  application) will crash without even returning 'false'.
>
>I think it must not crash!
>You should get error "File is Already opened"
>On this fact is based Open/Close trick.

Well, it does :) It also crashes when you've updated the database 
structure and forgot to create the new fields in the datafile. When 
accessing one of these fields, the RB app crashes. It should throw an 
error too instead of crashing, but I've got use to debugging by 
crashes :)
-- 

Best regards,

Peter De Berdt
--------------
My software never has bugs, it just generates random features...


More information about the Valentina mailing list