Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: skip the Assign destroy object or fire a C5 crash
Message
From
15/04/2004 14:38:57
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00893546
Message ID:
00895280
Views:
33

Simply because of proper encapsulation, if you don't want to create an object, you shouldn't let factors outside of that object make the determination.


I'd think you'd want outside factors have an opportunity to do anything they want, even try to make the assignment, but have control within your object allow it or not. (Which is what I think you are saying.) Thus making the bug that I introduced a dangerous one. When you have a property that has an assign method and you don't assign the lparameter to the property it will cause memory to be corrupt and will eventually cause a C5 error.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform