Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PRIVATE vs Hard-coding cursor name
Message
From
15/03/2019 11:04:27
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
15/03/2019 10:55:25
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01667233
Message ID:
01667264
Views:
50
>>>Also, I think hard coding a cursor name is always fine. Cursor names are private to the data session that they are created in and their file names are sys(2015) values implicitly.
>>
>>Here's an exception which made me think twice before giving a fixed name to a cursor... well, until I managed to have every user have his own temp folder. In the bad old times when we didn't know how to do that, having a fixed name for a cursor was fine until that cursor had a cdx and got flushed to disk. Then some other instance created that cursor and fox found the cdx (this is fpd2.6 days) and tried to use it and of course it didn't match - it was made on the records of the first user's cursor. Same thing applied if the app crashed and the cursor's cdx was left on disk.
>>
>>That was 24 years ago, though - so either the defensive practices worked, or having separate temp folders did.
>
>Sorry Dragan,
>I didn't understand the scenario. I create indexes for cursor but do not have the problem you mentioned. Maybe you weren't creating structural index but specifying an index file name.

Yes, I think that was the case. It was long ago, and my.memory.refresh() was finished only after I posted the message :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform