This project is read-only.

Shapefile CreateNew fails

Apr 22 at 2:04 AM
I my current project I decided to ass MapWinGis to display a series of points on a map. I copied the code from a previous project that works fine. I use the following to create the shapefile:
    Dim shotpoints As New MapWinGIS.Shapefile
    success1 = shotpoints.CreateNew("SPSF.shp", MapWinGIS.ShpfileType.SHP_POINT)
The program will run once and then it fails to create the shapefile on any subsequent runs. It took me a while to figure out what is happening. The shapefile is being created in the \bin\debug folder of my project and as long as that file is there it will not create a new one. I have to delete the shapefile from the \bin\debug folder in order to run the program again.

What do I have to do to fix this.
Apr 22 at 2:40 PM
OK I figured it out. Just don't give it a filename.
    success1 = shotpoints.CreateNew("", MapWinGIS.ShpfileType.SHP_POINT)