FIX: Run-time Error "This Array is Fixed or Temporarily Locked"
Article ID: 176049
Article Last Modified on 8/11/2005
APPLIES TO
- Microsoft Visual Basic 5.0 Learning Edition
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 4.0 Enterprise Edition
This article was previously published under Q176049
SYMPTOMS
With an .exe file made from a Visual Basic project, you receive the
following error:
Run-time error 10:
"This Array is fixed or temporarily locked"
The error does not occur when the Visual Basic project is run in the design
environment.
CAUSE
This error occurs when your project uses the Microsoft Data-bound Grid
control and you pass an element of a variant array to a procedure in a
class module. This problem only occurs in Visual Basic 5.0 if the Visual
Basic 5.0 Service Pack 2 or Service Pack 3 is installed.
RESOLUTION
There are several possible workarounds for this problem:
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been fixed in Visual Basic 6.0.
Additional query words: kbVBp500bug kbSPack kbDSupport kbdsd kbVBp kbVBp600fix kbSSafep2
Keywords: kbbug kbfix kbgrpdsvb KB176049