General information
Category:
Coding, syntax & commands
>Do you've any timers in your application that could fire at that time and cause this? BTW, wht's 'WorkSpec' table/cursor? How is't created?
There is one timer but its not doing any deletes I'll look into this angle.
Workspec is a cursor created with CREATE CURSOR and its running with buffer level 5.
>>Hi,
>>
>>I am having an extrelemy bizarre problem where lines are being
>>mysteriously marked for deletion in a grid.
>>
>>This problem occurs only (so far) on two specific machines.
>>Other machines with the same configuration do not have this problem.
>>These machines have visual foxpro 8 installed which is the only difference I can see.
>>
>>Basically in the save code for a form with a grid I have code as follows:
>>
>>**->>>>>>>>>>Lines are not marked for deletion here
>>if ntol(prefsall.arti_mbe) and !ntol(WorkSpec.PDMOnly) and !.AllArticleFound
>> ....
>>endif
>>
>>.mousepointer=11
>>
>>SELECT WorkSpec
>>set order to no_in_row
>>
>>cLogTable = "TMPDMLOG"
>>&&TJM not implemented yet S21SessLog(cLogTable, .T.)
>>
>>** delete lines in specific that are deleted in workspec
>>set dele off
>>sele WorkSpec
>>
>>**->>>>>>>>>>Lines suddenly all marked for deletion here and get deleted
>>**by this code
>>SCAN FOR DELETED() AND RECNO>0
>> .DeleteOneSpec(WorkSpec.Recno)
>>ENDSCAN
>>
>>When I comment out the scan everything works except lines that the functionality to mark lines as deleted does not work.
>>
>>When I run the same code with the debugger open the problem does not occur.
>>
>>Anyone have any idea how these records could get marked for deletion?
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only