Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 13 when running goMeta.oSDTMgr.OpenData()
Message
 
To
31/12/2001 10:34:26
General information
Forum:
Visual FoxPro
Category:
Stonefield
Miscellaneous
Thread ID:
00598630
Message ID:
00599922
Views:
22
Hi Doug,

I did run this line early in the app:
   goMeta = CREATEOBJECT('MetaMgr')

but now i have changed it to:
   goMeta = CREATEOBJECT('DBCXMgr')

and now that error is gone.

But I have another problem, also appearing only with SDT6.0 not with 5.0. The following code worked fine in SDT5.0 but now I get an "File access is denied (Error 1705)" inside the OpenData-method.

 goMeta.oSDTMgr.OpenData(Allt(goApp.GetSetting(lcKey, DBC_NAME)+ DBC_NAME),.T.,.T.,.F.)

In SDT 5.0 it does not result in any error , it just return .F.. I run this in the startup of the app and if the database and all tables can be opened exclusive, I run goMeta.oSDTMgr.NeedUpdate() to check, but if .F. is returned (could be someone else running the app ) i skip the NeedUpdate().

/Torgny

>Hi Torgny.
>
>>I just upgraded to SDT6.0 and now when i run the following code i get an
>>error.
>>
>> If goMeta.oSDTMgr.OpenData('data\document.dbc',.F.,.T.,.T.)
>>
>>In metamgr.createpropcursor() it bangs out on the following line:
>
>Are you instantiating MetaMgr or DBCXMgr? I highly recommend using DBCXMgr, as MetaMgr is really only provided for backward compatibility and is considerably slower and less capable than DBCXMgr.
>
>Doug
>
>>
>> lcTable = addbs(justpath(dbf(.cRegistryName))) + ;
>> alltrim(.cPropCursorName) + '.dbf'
>>
>>The value of .cRegistryName is 'DBCXReg'
>>and .cPropCursorName = 'DBCXProps'
>>
>>If I comment out the line everything works OK. Has anyone else been having the same problem ?
/Torgny
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform