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.
That link should get you off the hook:
http://adndevblog.typepad.com/autocad/2012/06/use-thread-for-background-processing.html
Regards,
Philippe.