First off, why are you using threads? That's not a good way to use them, and it seems like you might be getting into them before you really understand the basics.

But your error says it all. Your...