Click here to Skip to main content
15,917,455 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: IP helper (GetAdaptersAddress, GetAdaptersInfo) Pin
Kogee San19-Nov-07 9:32
Kogee San19-Nov-07 9:32 
AnswerRe: IP helper (GetAdaptersAddress, GetAdaptersInfo) Pin
David Crow16-Nov-07 5:58
David Crow16-Nov-07 5:58 
QuestionTemplate class parameter Pin
George_George15-Nov-07 16:36
George_George15-Nov-07 16:36 
AnswerRe: Template class parameter Pin
George L. Jackson15-Nov-07 17:33
George L. Jackson15-Nov-07 17:33 
GeneralRe: Template class parameter Pin
George_George15-Nov-07 19:19
George_George15-Nov-07 19:19 
GeneralRe: Template class parameter Pin
George L. Jackson16-Nov-07 0:55
George L. Jackson16-Nov-07 0:55 
GeneralRe: Template class parameter Pin
George_George18-Nov-07 3:47
George_George18-Nov-07 3:47 
GeneralRe: Template class parameter Pin
George L. Jackson18-Nov-07 7:28
George L. Jackson18-Nov-07 7:28 
GeneralRe: Template class parameter Pin
George_George18-Nov-07 22:35
George_George18-Nov-07 22:35 
GeneralRe: Template class parameter Pin
George L. Jackson19-Nov-07 14:53
George L. Jackson19-Nov-07 14:53 
GeneralRe: Template class parameter Pin
George_George19-Nov-07 15:33
George_George19-Nov-07 15:33 
QuestionUpgrade Appliction that link with MFC42.dll to newer version Pin
xanagan66615-Nov-07 15:16
xanagan66615-Nov-07 15:16 
AnswerRe: Upgrade Appliction that link with MFC42.dll to newer version Pin
Luc Pattyn15-Nov-07 15:59
sitebuilderLuc Pattyn15-Nov-07 15:59 
AnswerRe: Upgrade Appliction that link with MFC42.dll to newer version Pin
George L. Jackson15-Nov-07 16:35
George L. Jackson15-Nov-07 16:35 
GeneralRe: Upgrade Appliction that link with MFC42.dll to newer version Pin
Luc Pattyn15-Nov-07 17:31
sitebuilderLuc Pattyn15-Nov-07 17:31 
AnswerRe: Upgrade Appliction that link with MFC42.dll to newer version Pin
xanagan66615-Nov-07 18:13
xanagan66615-Nov-07 18:13 
QuestionNamedPipe Error in CreateFile Pin
ginjikun15-Nov-07 14:54
ginjikun15-Nov-07 14:54 
AnswerRe: NamedPipe Error in CreateFile Pin
Llasus15-Nov-07 14:59
Llasus15-Nov-07 14:59 
GeneralRe: NamedPipe Error in CreateFile Pin
ginjikun15-Nov-07 15:12
ginjikun15-Nov-07 15:12 
GeneralRe: NamedPipe Error in CreateFile Pin
Llasus15-Nov-07 15:50
Llasus15-Nov-07 15:50 
GeneralRe: NamedPipe Error in CreateFile Pin
ginjikun15-Nov-07 16:17
ginjikun15-Nov-07 16:17 
GeneralRe: NamedPipe Error in CreateFile Pin
Luc Pattyn15-Nov-07 16:38
sitebuilderLuc Pattyn15-Nov-07 16:38 
GeneralRe: NamedPipe Error in CreateFile Pin
ginjikun15-Nov-07 16:59
ginjikun15-Nov-07 16:59 
GeneralRe: NamedPipe Error in CreateFile Pin
Luc Pattyn15-Nov-07 17:17
sitebuilderLuc Pattyn15-Nov-07 17:17 
GeneralRe: NamedPipe Error in CreateFile Pin
ginjikun15-Nov-07 17:56
ginjikun15-Nov-07 17:56 
Hi again Luc! and thanks again for the reply.

what i mean by concurrent call to CreateFile was that there was 2 calls to the functions i have created which calls CreateFile. i have a DLL which have exported functions for sending data.
sample code is... in my DLL
function1()
{
Log("function1 Entry");
CreateFile(..);
WriteFile(..);
ReadFile(..);
CloseHandle(..);
Log("function1 Exit");
}
there is no lock in function1. in the logging i saw
"function1 Entry"
"function1 Entry"

which means that 2 calls to this function was made even before the 1st call has finished. ideally that log should be like this
"function1 Entry"
"function1 Exit"
"function1 Entry"
"function1 Exit"

after i saw the log which have 2 entries "function1 Entry" then all succeeding logs was the failed in CreateFile. maybe the issue is not the concurrent call to CreateFile but it is in the function whereby the first call has connected already then another calls CreateFile again. will this invalidated the pipe instance previously created? i guess another question should be what if a function was called concurrently when it has not yet finished its previous processing, what will be the effect?

im lost Sigh | :sigh:

thanks for the help!


old

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.