Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 108: What gives?
Message
From
07/12/2006 08:52:56
 
 
To
07/12/2006 08:49:52
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01175426
Message ID:
01175579
Views:
15
Nevermind. I see Sergey pointed you to the cause of your problem...

Ok, in your original code, on what line do you receive the error? I'm assuming you have error trapping in place that catches that information for you?


>Oh. That's just a missing line I forgot to include in this post. I just abbreviated the code for posting. There is a SELECT MyId there.
>
>>On what line do you get the error? Also, I cannot see how you replacing the field in the correct table:
>>
>>>use MyId in 0 alias MyId again shared <-- You open it in 0 not current work area why AGAIN and SHARED?
>>>go top <--What table is currently selected here (and next lines the same question)
>>>if rlock()
>>> replace nextid with nextid + 1
>>> nNextId = nextid
>>> unlock
>>>endif
>>>use in select('MyId')
>>>select (cAlias)
>>>return nNextId
>>>
>>>Environment:
>>>1. MyApp.exe runs on several MyAppServers. There are at least 25 instances of MyApp.exe running.
>>>2. Data resides on MyDataServer.
>>>3. At any given second, there can be at least 5 queries, updates or inserts (any or all) against MyTable.
>>>4. SET REPROCESS TO 2
>>>
>>>
>>>What preventive code should I put in - probably before the INSERT statement? I don't want to use the AutoInc functionality as the tables are before that version of VFP.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform