Click here to Skip to main content
15,902,275 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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
GeneralRe: NamedPipe Error in CreateFile Pin
Luc Pattyn15-Nov-07 18:07
sitebuilderLuc Pattyn15-Nov-07 18:07 
GeneralRe: NamedPipe Error in CreateFile Pin
ginjikun15-Nov-07 18:18
ginjikun15-Nov-07 18:18 
GeneralRe: NamedPipe Error in CreateFile Pin
Luc Pattyn16-Nov-07 2:55
sitebuilderLuc Pattyn16-Nov-07 2:55 
GeneralRe: NamedPipe Error in CreateFile Pin
Llasus15-Nov-07 18:13
Llasus15-Nov-07 18:13 
GeneralRe: NamedPipe Error in CreateFile Pin
ginjikun15-Nov-07 18:26
ginjikun15-Nov-07 18:26 
GeneralRe: NamedPipe Error in CreateFile Pin
Llasus15-Nov-07 17:42
Llasus15-Nov-07 17:42 
GeneralRe: NamedPipe Error in CreateFile Pin
ginjikun15-Nov-07 18:01
ginjikun15-Nov-07 18:01 
GeneralRe: NamedPipe Error in CreateFile Pin
Llasus15-Nov-07 18:25
Llasus15-Nov-07 18:25 
GeneralRe: NamedPipe Error in CreateFile Pin
ginjikun15-Nov-07 18:31
ginjikun15-Nov-07 18:31 
GeneralRe: NamedPipe Error in CreateFile Pin
Llasus15-Nov-07 18:38
Llasus15-Nov-07 18:38 
QuestionCapture TEXT in screen Pin
chiwaki15-Nov-07 13:22
chiwaki15-Nov-07 13:22 
AnswerRe: Capture TEXT in screen Pin
chiwaki15-Nov-07 15:37
chiwaki15-Nov-07 15:37 
QuestionHelp Pin
dellthinker15-Nov-07 13:10
dellthinker15-Nov-07 13:10 
QuestionHow to process and update GUI Pin
nrbracke15-Nov-07 11:32
nrbracke15-Nov-07 11:32 
AnswerRe: How to process and update GUI Pin
Mark Salsbery15-Nov-07 11:38
Mark Salsbery15-Nov-07 11:38 
GeneralRe: How to process and update GUI Pin
nrbracke17-Nov-07 12:44
nrbracke17-Nov-07 12:44 
GeneralRe: How to process and update GUI Pin
Mark Salsbery17-Nov-07 13:03
Mark Salsbery17-Nov-07 13:03 

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.