During initial development, I created a map service object for each user. In this way, the layer visibility control of the map, display scale, geographical display range, and drawing size are displayed, selecting user-related personalized information such as graphics has independent map objects for maintenance. at the early stage of development, there were only a few testers who did not find any problems. Then there were several more testers. The problem came and the map turned black! When IE is open to 29, the display is not normal, and some lines are not properly drawn.
Later, we found that we were constantly creating map objects for each user, and the map object itself needed bitmap and other kernel resources, especially when multiple users were concurrent, and the system was scrambling to create kernel objects.
Only by changing the map service mode, only one map service object is created, and personalized information such as the visibility of the graphic layer is selected for the current display range of the scale, stored in the session, each request for the map, this information is also passed to the map object. this saves kernel resources.
There is still a problem. For concurrent access, user a requested the map and has not yet returned the result. User B also requested the map, resulting in the final result returned to the user being the map requested by user B.
What should I do ????
Multi-thread concurrency control, as for the Implementation Details, let's not talk about it. In the C # environment, implement