After a second run it works
I have scripts repeating several hundreds time the same group of functions like this:
IMPORT FILENAME="file1.SHP" TYPE=SHAPEFILE
.....editing operations.....
EXPORT_VECTOR FILENAME="file3.SHP" TYPE=SHAPEFILE SHAPE_TYPE=AREAS GEN_PRJ_FILE=YES POLYGON_CROP_FILE="file2.SHP" POLYGON_CROP_USE_ALL=YES
UNLOAD_ALL
The script load a file, do some editing then export it while performing a crop with another file.
Then UNLOAD_ALL and restart from the beginning with anther set of files.
Sometimes the final crop does not work.
But if I extract that portion of the script into a separate file and run it, then it works (so I am not able to replicate the problem and send a request of support to geohelp).
It looks like GM after some time running a script have some problems...memory leak ?
Do you have any suggestion to avoid this?
I also tried reducing the Script size, but it seems a random problem.
Thanks for your help.
Giorgio
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 636 GM Script Language
- 54 User Scripts
- 114 GPS Features
- 417 Projection Questions
- 826 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 913 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 569 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 238 How I use Global Mapper
- 107 Global Mapper Forum Website