| |

VerySource

 Forgot password?
 Register
Search
Author: gebihu

Please master to see what is wrong with the code below, MapX5.0 + VC

[Copy link]

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-21 17:15:01
| Show all posts
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.
Reply

Use magic Report

1

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-8-22 19:45:01
| Show all posts
Thanks for your replies.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list