|
Hmm... Indeed, mapx does not support multithreading. I also encountered this problem, and later it was changed to the timer.
Also, if you are adding primitives to a certain layer, there is no need to refresh the entire mapx. That is to refresh all layers, including those that are not operated, so just refresh the layer where the primitives are added. . There is a problem with the writing of this program. If there is no mistake, CMapX * m_mapx will directly m_mapx->GetLayers () without initializing. If this is not a clerical error by the host, the program will definitely be interrupted! It is best to add a pointer or reference to mapx in the parameter list of the function as a parameter and pass it to the function for use. |
|