To better manage this issue, I intend to create the table in the scratch workspace system temp if unspecified then move the file to the correct destination when I'm finished accessing it. The code you posted doesn't look too different from what I usually do, but maybe you could try pulling the workspace factory and the geoprocessor to a more global level instead of instantiating them at every method call.
I do remember running into some locking problems using the geoprocessor, so I try to avoid using it and working with arcobjects directly where possible. You'll be better off asking this question at gis. I know of at least one ArcObjects guru frequenting that place. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.
Learn more. How do you remove a schema lock on a dbf file accessed using ArcObjects? Ask Question. Asked 11 years ago. Active 11 years ago. Viewed 6k times. Our community of experts have been thoroughly vetted for their expertise and industry experience. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
All rights reserved. Covered by US Patent. Come for the solution, stay for everything else. Welcome to our community! Similar threads C.
Cablek Dec 15, Excel Questions. Replies 1 Views Dec 21, Cablek. Legacy Dec 28, Excel Questions. Replies 0 Views Dec 28, Legacy Question Multi-loginForm to access Database. Collymore Nov 23, Excel Questions. Nov 23, Collymore. Improve this question.
Community Bot 1. I've previously deleted lock files via Windows explorer without problems. Though I have deleted lock files with Windows explorer in the past, that was generally when the lock file remained erroneously. In this case, it seems that ArcMap is somehow still holding on to the file, but I'm not sure how or why. Just thinking aloud have you tried calling the remove join geoprocessing tool using the IGeoprocessor? Hornbydd Haven't tried the Geoprocessor yet, I'll give that a shot.
Hornbydd, Your suggestion worked, however the geoprocessor is quite slow in comparison to the RemoveJoins2 method, but I guess I'll have to live with that. Anyway, thanks for the suggestion. Add a comment.
Active Oldest Votes. RemoveJoin removeJoinTool. Improve this answer.
0コメント