Allocating memory for CreateCustomElevGridLayer
Mike,
I realized today that when creating a custom elev grid layer, I can't delete the pointer to the elevation array I pass to the SDK. I assume the SDK deletes the memory when the layer is closed. Is it important whether I malloc or new the initial memory?
Thanks for your help.
David
I realized today that when creating a custom elev grid layer, I can't delete the pointer to the elevation array I pass to the SDK. I assume the SDK deletes the memory when the layer is closed. Is it important whether I malloc or new the initial memory?
Thanks for your help.
David
Comments
-
Mike,
Also, the SDK is appending a space and opening and closing parentheses, " ()", to the layer description I enter in CreateCustomElevGridLayer. I am using the 1/11/12 build.
Thanks,
David -
David,
While the SDK doesn't free the memory for the layer, it does expect it to stick around while the layer is open. You would need to free the memory yourself after you call GM_CloseLayer.
I will fix the issue with the description and provide you with a new SDK build.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
David,
I have placed a new build at http://www.globalmapper.com/GlobalMapperSDK_latest_beta.zip which should fix the issue with the description.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
Thanks, Mike.
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website