Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

My application is drawing graphics objects on the map(as simple as adding IElement to GraphicsContainer). When I create graphics elements and add them to GraphicsContainer in BackgroundWorker DoWork method, ActiveView Refresh method does not show any added graphics. Are there any triks to take into account when drawing on the map in different thread? (if at all possible) Any help will be greatly appreciated.

share|improve this question

1 Answer 1

ArcObjects are primarily single-threaded COM components. That does not prevent you from writing multi-threaded applications, you just need to stick to certain guidelines.

See the SDK article Writing multithreaded ArcObjects code, it should provide all the information you need.

share|improve this answer
    
Thanks a lot for useful information. –  Julia Sep 4 '12 at 18:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.