chrislim2888 / IP2Location-C-Library

IP2Location C library enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather station code, weather station name, mobile, usage types, etc that any IP address or hostname originates from.
https://www.ip2location.com
MIT License
61 stars 30 forks source link

Fix Shared-memory name #45

Closed gvanem closed 3 years ago

gvanem commented 3 years ago

Running an IP2Location program under Windows, shows a strangely named:

\Sessions\1\BaseNamedObjects\/IP2location_Shm

This PR fixes this to produce a:

\Sessions\1\BaseNamedObjects\IP2location_Shm_1234

instead. The process-id (1234) is now part of the name. Similar to how it's done on non-Windows.

Ref: Issue https://github.com/chrislim2888/IP2Location-C-Library/issues/44