Bug in vServer with multiple databases?

Florian Bogeschdorfer fb at memedia.de
Wed Sep 29 18:41:38 CDT 2004


Hi Ruslan, I think I found a bug:

When you have e.g. 2 databases in the DB folder, getDatabaseCount() will
return "3", which is OK, since the master.db is #3. Now when you stop the
service, delete one database and restart the service, getDatabaseCount()
still returns "3". 
Even more, when you do something like this:

    repeat with ii=1 to y     
      xx=vs.GetDbInfoRef(ii)      
      xx_name=vs.GetDbName(xx)
      vs.ReleaseDbInfoRef(xx)
      put xx_name
      if xx_name="me.boxx" then
        flagMe=0
        exit repeat
      end if
    end repeat

You will even get the name of the db, that is no more existing. Please fix
this.

Thank you, Florian



More information about the Valentina mailing list