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
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
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
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