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 / Languages / C++ Libraries / November 2004

Tip: Looking for answers? Try searching our database.

Getting R6016 when trying to start new thread

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Greno Zee - 19 Nov 2004 12:37 GMT
Hi all!

I'm new to these discussion boards and my C/C++ experience is not very deep.
So please be patient with my and forgive me if I don't grasp the structures
here at first glance.

I'm trying to implement some multithreading to my current project and I want
to see how mutexes and events work (the documentation seems to me unclear
here).
So I created an event, called _beginthread followed by by
WaitForSingleObject call. Inside of the thread I ResetEvent (as I said - I'm
testing the possibilities - maybe SetEvent here?).

When debugging, the _beginthread returns thread ID but when I step over the
WaitForSingleObject call, I get the error mentioned above.
I can imagine that the debugger actually doesn't allow the thread to start
untill the debugged thread is put to idle, so the order of events doesn't
have a big significance. Still, I'm pretty clueless and searching MSDN as
well as other developer resources didn't bring any result :(
Greno Zee - 22 Nov 2004 10:39 GMT
Ops, no ideas at all?

Rate this thread:







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.