Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Private-Declaration produces deadlock
Message
From
08/05/2000 09:38:08
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Private-Declaration produces deadlock
Miscellaneous
Thread ID:
00367209
Message ID:
00367209
Views:
58
Hi all,
last week I had a problem with some code in one of my formclasses. After several debugs and tests I now have found out, that it all depended on the 'private'-declaration of two variables. After changing 'private' to 'local' everything is working fine. However I don't have any explanation for this.

Perhaps someone can give me a hint. Here is the original code:

* Begin code
Private laArray(1), liFlag /* now changed to Local
With This
.Lockscreen = .T.
For liflag = 1 To .ControlCount
= AMembers(laArray, .Controls(liFlag), 1)
If AScan(laArray, 'resize') > 0
.Controls(liFlag).Resize
EndIf
EndFor
.Lockscreen = .F.
EndWith
* End code
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Next
Reply
Map
View

Click here to load this message in the networking platform