S
Steve Howard
I'm trying to get a handle on threading. I think I need to run my
text-to-speech code in a separate thread.
I looked at this example from Chris Tackle,
http://www.danielmoth.com/Blog/2004/11/dont-poll.html, which looks like it
should be just what I need. I tried to get it to work in VS 2005. I get the
error
Using the generic type 'System.Collections.Generic.Queue<T>' requires '1'
type arguments
I've tried Queue<string> , and bool, int ... and that gets by the first
error, but now I get
'System.Collections.Generic.Queue<string>' does not contain a definition for
'SyncRoot'
So i've tried other things ... int, object etc. I can't see a reference
anywhere that says what (if indeed anything) should be after Queue. As ever,
I must be missing something simple. I'd be grateful for any pointers.
Steve
text-to-speech code in a separate thread.
I looked at this example from Chris Tackle,
http://www.danielmoth.com/Blog/2004/11/dont-poll.html, which looks like it
should be just what I need. I tried to get it to work in VS 2005. I get the
error
Using the generic type 'System.Collections.Generic.Queue<T>' requires '1'
type arguments
I've tried Queue<string> , and bool, int ... and that gets by the first
error, but now I get
'System.Collections.Generic.Queue<string>' does not contain a definition for
'SyncRoot'
So i've tried other things ... int, object etc. I can't see a reference
anywhere that says what (if indeed anything) should be after Queue. As ever,
I must be missing something simple. I'd be grateful for any pointers.
Steve