I'm fairly new to this project and to VB and got some of old code to fix. The task is to click a polygon on the screen with the mouse and then save it to a shapefile.
When executing the code, it breaks with the error message:
Run-time error -2147467259 (80004005) Automation error
The debugger turns to this line where the destination shapefile is opened:
Set pWorkspace = pWorkspaceFactory.OpenFromFile("I:\Projekte\LBDatenBank\Karten\Bildrahmen.shp", 0)
I: is a network drive.
I did some research and it seems that the WorkspaceFactory does not usually open shapefiles, yet this code used to work without changes a few months ago.
If I change the string to a path to a directory or something else the error stays the same. Even if I enter no path at all and just random characters.
I think the problem might be within the OS?