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
- 13K All Categories
- 5.8K Features Discussion
- 351 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 652 GM Script Language
- 56 User Scripts
- 115 GPS Features
- 423 Projection Questions
- 837 Raster Data
- 1.4K Vector Data
- 6.7K Support
- 183 Announcement and News
- 944 Bug Report
- 565 SDK
- 1.2K Suggestion Box
- 3.8K Technical Support
- 583 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 246 How I use Global Mapper
- 111 Global Mapper Forum Website
