Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUGS: collection it can be behaved in unforeseeable way
Message
 
 
To
27/05/2005 13:35:50
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01018216
Message ID:
01018297
Views:
9
Try to execute them on the separate lines
? myCollection.Remove(-1)
? myCollection.Count 
>Within a very Complex program, i have this Collection bugs,
>they happen with a pseudo random frequency,
>but if the program do the same cycle,
>the occurrences are deterministic.
>
>
>myCollection.GetKey() return .T.
>myCollection.Item(existskey) return .T.
>myCollection(existskey) return .T.
>? myCollection.Remove(-1),myCollection.Count && output is .T.,104 ( or others not zero values )
>
>
>I have found a workaround:
>
>retry the operation another time
>
>but i'm not sure that this is a sure workaround.
>
>Result: Collection is not usable.
>
>I try to reduce the application for a simple repro code;
>a simple random test is not sufficient for a reproduction of the bugs.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform