.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BackgroundWorker Information

1 REPLY 1
Reply
Message 1 of 2
hassanhafeez33
288 Views, 1 Reply

BackgroundWorker Information

Hi All, 

 

I have a few queries related to the use of BackgroundWorker, so i have turned to this awesome audience for questions. 

 

Firstly, I unnderstand the background worker is not supposed to interact with the database it was spawned off from. Which leads to my questions:

 

1. Polyline is a database object (Databaseservices.Polyline), Can a polyline be opened (as read only) in the main thread and passed to the backgroundworker for only geometric calculations? as in getting vectors, reading properties etc etc? 

2. Same as first question, but with Line object?

 

Secondly, I have implemented the backgroundworker successfully with geomtric objects such as point classes etc and they seem to work perfectly, however when i try to implement the database objects, I get weird crashes at random times. sometimes even at start, sometimes after a while. Cant seem to pin down the exact problem. 

 

I hope someone could answer my questions, I'd be obliged.

 

Cheers.  

 

1 REPLY 1
Message 2 of 2

That link should get you off the hook:

 

http://adndevblog.typepad.com/autocad/2012/06/use-thread-for-background-processing.html

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost