Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PRIVATE vs Hard-coding cursor name
Message
From
15/03/2019 10:55:25
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
15/03/2019 07:57:05
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01667233
Message ID:
01667263
Views:
55
>>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.
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform