Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Database Not Found and MetaDBC.dbf record count is 0
Message
De
29/04/1999 15:35:08
 
 
À
29/04/1999 15:06:21
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00213132
Message ID:
00213617
Vues:
30
>>Guess what... I duplicated this today... it happended when I built an .EXE... why it happens in an EXE and not what you run DO MAIN I don't know... I will look through the code and see if I can come up with an answer:
>
>I know why: When you run Do Main, paths are set and MetaDBC is found as it was created when Quickstart was Run. When you run your .Exe file on another directory MetadataDBC is not there. Then it is created an you receive the "MetaDBD Record Count is 0" Wait Window message.
>

Right... but even if lCheckDefaultDataBase is .t. if lUseMetaDBCMgr is false this class should not be used.


>If MetaDBC exists and contains the original Path to where the original database was when created. It is not found and you receive the message "Database not found". Looking at the code, there is a logical property named lCheckDefaultDatabase which is tested in order to get the path to the original database out of MetaDBC. Unfortunately the Devguide refers to this property only for the pourpuse of using multiple Databases at "Miscellaneous Data Environment Settings" and the BizObj Builder is supposed to be used with your own application dataenvironments, not with those that are created at start up like AbstractFactoryEnvironment and EventLogEnvironment.
>

The sort term fix my be to set lCheckDefaultDatabase to false for these classes that use Free tables like Error, Classes, etc.

>I really hope Kevin would take a look at this thread.
>
>Saludos

BOb
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform