Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / January 2006

Tip: Looking for answers? Try searching our database.

Threading

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve Howard - 10 Jan 2006 01:04 GMT
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
<ctacke/> - 10 Jan 2006 02:18 GMT
That would be a sample by Daniel Moth, as somewhat alluded to by the site
URL.  No idea who Chris Tackle is - maybe a brother of Fishing Tackle?

At any rate, I'd recommend doing work without generics so you're not trying
to understand both generics and threads at the same time.  Generics are not
needed, and likely of little use for a specific problem.  If you want to get
away from the cross-thread marshaling stuff you'll need, the
BackgroundWorkerThread of the SDF would help.

www.opennetcf.org/sdf

-Chris

> I'm trying to get a handle on threading. I think I need to run my
> text-to-speech code in a separate thread.
[quoted text clipped - 19 lines]
>
> Steve
Steve Howard - 10 Jan 2006 03:05 GMT
> That would be a sample by Daniel Moth, as somewhat alluded to by the site
> URL.  No idea who Chris Tackle is - maybe a brother of Fishing Tackle?

:-)

Sorry about that. Never was very good at names, even when they were right
there in front of me :-(

> At any rate, I'd recommend doing work without generics so you're not
> trying to understand both generics and threads at the same time.  Generics
[quoted text clipped - 3 lines]
>
> www.opennetcf.org/sdf

Thanks!

Since what I am working on today is designed as a proof-of-concept I can
afford to pass-by this at the moment. I'm up to my eyes in research and
code. I have a new project on the cards for next week which has to have this
particular issue resolved. I'll go back to it then. If you hear a scream
about Wednesday next week it's coz I still haven't worked it out :-)

Steve

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.