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.6K All Categories
- 5.6K Features Discussion
- 337 Downloading Imagery
- 1.3K Elevation Data
- 379 Georeferencing Imagery Discussion
- 626 GM Script Language
- 52 User Scripts
- 113 GPS Features
- 407 Projection Questions
- 816 Raster Data
- 1.3K Vector Data
- 6.5K Support
- 175 Announcement and News
- 904 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 559 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 231 How I use Global Mapper
- 106 Global Mapper Forum Website