Hi, you are right about the hangings on WinXP after all. I tested gpx format on VM and it hangs indeed. I already committed a fix. We shall release a new installer with the fix soon. Thanks for reporting this.
Regarding the code, I see a problem in this line:
Regards,
Sergei
Regarding the code, I see a problem in this line:
sf.ShapeCategory[sf.NumShapes] := Elem['ID_']-1; //Fails. Assign -1
The last shape in shapefile always has an index sf.NumShapes -1, since the the indices are 0-based. You can also use index variable from sf.EditInsertShape(shape, index) call. It's passed by reference and will hold the correct index for the inserted shape. Regards,
Sergei