[V4RB] Handling of dbs being served

jda jda at his.com
Fri Feb 14 09:02:56 CST 2003


>
>AFAIK it's at least dangerous, probably impossible, maybe even fatal
>(for the database) to open it twice.
>
>But if you have that database already open in the same application (the
>HTTP server app), there's no need to open it twice; just make it (the
>VDatabase object) available to the HTTP server code via some global
>array or similar, and let the HTTP server part "share" the database
>object. I think that should be safe.
>

Thanks, Frank, that's exactly what I'm doing. I'm first polling the 
open windows to see if it is the database that was requested, and if 
so I'm just setting a local variable VDatabase object to the one 
using that window. If there is no such db open, I open it, search, 
and close it.

Jon


More information about the Valentina mailing list