use Loaded layer in other application
Comments
-
A layer handle is a pointer into memory in the address space of your first application, there isn't any way to transfer that to another running application. You would need to reload the layer in your second application.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
But the pointer that i have can be used from another application, because it's the memory address of the object and is the same for any application and there is way to transfer that to another running application.
in sdk global mapper must be where a function that set layer handle.
how i do it? -
That's not how memory works (at least not since the 16-bit Windows days). The memory pointers are virtual memory addresses that are only valid within the address space of a single process. You can't transfer pointers between running applications.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
i have a pointer into memory address in application 1,same pointer can be used in another running application.
in language c and c++ is very usual doing it, because we use a pointer into memory address.
may in SDK Global Mapper set pointer layer handle instead of load layer? -
That's simply not true, you cannot simply pass pointers from one running process to another, each process has it's own independent memory space, otherwise you could easily corrupt the memory space of other running processes simply by writing to memory being used by that process.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com
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