** This issue is addressed in ArcGIS 9.0 Service Pack 2 (SP2) **When in ShapefileLocking, running the script on a shapefile causes a fail. The script tool locks the shapefile/featureclass. Subsequently, GpDispatch.AddField fails because it can't get a lock.
Get help from ArcGIS experts
Download the Esri Support App