Click here to Skip to main content
15,849,262 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGaneric Class Define Pin
bestbear10-Nov-16 19:27
bestbear10-Nov-16 19:27 
AnswerRe: Ganeric Class Define Pin
leon de boer10-Nov-16 20:04
leon de boer10-Nov-16 20:04 
GeneralRe: Ganeric Class Define Pin
bestbear10-Nov-16 20:10
bestbear10-Nov-16 20:10 
GeneralRe: Ganeric Class Define Pin
leon de boer10-Nov-16 20:31
leon de boer10-Nov-16 20:31 
AnswerRe: Ganeric Class Define Pin
Stefan_Lang1-Dec-16 4:55
Stefan_Lang1-Dec-16 4:55 
QuestionSave the image from window buffer Pin
Onic77710-Nov-16 5:26
Onic77710-Nov-16 5:26 
AnswerRe: Save the image from window buffer Pin
leon de boer10-Nov-16 17:10
leon de boer10-Nov-16 17:10 
QuestionERROR_INVALID_HANDLE returned From WaitForSingleObject after CreateMutex Pin
ForNow10-Nov-16 3:41
ForNow10-Nov-16 3:41 
Hi
I am getting ERROR_INVALID_HANDLE on GetLastError after WaitForSingleObject returns -1

I more or Less followed the MSDN example Using Mutex

My main thread does muthandle = CreateMutex(NULL,FALSE,NULL);

Second parameter is FALSE indicating it is not owned

Later a second Thread calls WaitForSingleObject(muthandle,INFINITE) and gets a -1 which

GetLastError retuns ERROR_INVALID_HANDLE

THANKS
AnswerRe: ERROR_INVALID_HANDLE returned From WaitForSingleObject after CreateMutex Pin
Chris Losinger10-Nov-16 4:07
professionalChris Losinger10-Nov-16 4:07 
GeneralRe: ERROR_INVALID_HANDLE returned From WaitForSingleObject after CreateMutex Pin
ForNow10-Nov-16 4:29
ForNow10-Nov-16 4:29 
AnswerRe: ERROR_INVALID_HANDLE returned From WaitForSingleObject after CreateMutex Pin
Randor 10-Nov-16 5:32
professional Randor 10-Nov-16 5:32 
GeneralRe: ERROR_INVALID_HANDLE returned From WaitForSingleObject after CreateMutex Pin
ForNow10-Nov-16 5:40
ForNow10-Nov-16 5:40 
GeneralRe: ERROR_INVALID_HANDLE returned From WaitForSingleObject after CreateMutex Pin
Richard MacCutchan10-Nov-16 5:50
mveRichard MacCutchan10-Nov-16 5:50 
GeneralRe: ERROR_INVALID_HANDLE returned From WaitForSingleObject after CreateMutex Pin
ForNow10-Nov-16 6:02
ForNow10-Nov-16 6:02 
GeneralRe: ERROR_INVALID_HANDLE returned From WaitForSingleObject after CreateMutex Pin
leon de boer10-Nov-16 9:25
leon de boer10-Nov-16 9:25 
GeneralRe: ERROR_INVALID_HANDLE returned From WaitForSingleObject after CreateMutex Pin
ForNow10-Nov-16 9:50
ForNow10-Nov-16 9:50 
GeneralRe: ERROR_INVALID_HANDLE returned From WaitForSingleObject after CreateMutex Pin
Randor 10-Nov-16 6:06
professional Randor 10-Nov-16 6:06 
AnswerRe: ERROR_INVALID_HANDLE returned From WaitForSingleObject after CreateMutex Pin
Albert Holguin10-Nov-16 8:32
professionalAlbert Holguin10-Nov-16 8:32 
GeneralRe: ERROR_INVALID_HANDLE returned From WaitForSingleObject after CreateMutex Pin
ForNow10-Nov-16 8:50
ForNow10-Nov-16 8:50 
GeneralRe: ERROR_INVALID_HANDLE returned From WaitForSingleObject after CreateMutex Pin
Albert Holguin10-Nov-16 8:58
professionalAlbert Holguin10-Nov-16 8:58 
GeneralRe: ERROR_INVALID_HANDLE returned From WaitForSingleObject after CreateMutex Pin
leon de boer10-Nov-16 9:38
leon de boer10-Nov-16 9:38 
GeneralRe: ERROR_INVALID_HANDLE returned From WaitForSingleObject after CreateMutex Pin
ForNow10-Nov-16 9:53
ForNow10-Nov-16 9:53 
QuestionDebug Assertion Failed error by WaitForMultipleObjectsEx in 64 bit application Pin
Member 123356959-Nov-16 21:27
Member 123356959-Nov-16 21:27 
AnswerRe: Debug Assertion Failed error by WaitForMultipleObjectsEx in 64 bit application Pin
Richard MacCutchan9-Nov-16 23:54
mveRichard MacCutchan9-Nov-16 23:54 
AnswerRe: Debug Assertion Failed error by WaitForMultipleObjectsEx in 64 bit application Pin
Randor 10-Nov-16 3:00
professional Randor 10-Nov-16 3:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.