First true multithreading event

Today I was able to do some work on the .Net Download library project. I mainly focused on the cross thread event handling, on which I’ve been busy for quite a while now. Thanks to some helpful docs on MSDN, I now have a working implementation, that successfully fires events of the Download class onto the thread the instance was created. (yay!) The next step is to clean up the code a little, and implement it for all events. I’m still looking for the best way to store all the event delegates. I originally had a delegate for each event, but now moved them to a HashTable, from where I identify them via an Int32 Enum

.Breakpoint successfully triggered after cross thread fired event

2 thoughts on “First true multithreading event”

  1. Nice!

    Why did you not use delegates for cross threat communication?

    Btw, will the new library require .NET 4.0, which allows for anonymous functions?

    Keep up the good work!

  2. Hey,

    I am using delegates, like mentioned in the post 😉

    As for .Net 4.0: good question. To be honest, I haven’t had a good look at it yet. Unless it has some stuff that would really improve the lib, I’m sticking with .Net 2.0, which will allow a lot more people to use it, and will have less deployment issues.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.