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

C / C++ / MFC

 
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 
GeneralRe: NamedPipe Error in CreateFile Pin
Luc Pattyn15-Nov-07 18:07
sitebuilderLuc Pattyn15-Nov-07 18:07 
ginjikun wrote:
i'm lost

to the contrary, you are zeroing in on the problem.

does your client code have full error checking?
every call related to pipes should check its return value, and whenever it is not good,
it should call GetLastError and log the result. That will tell you what goes wrong there
as soon as things start to go wrong.

chances are you will have to provide a lock over the entire function1.

Q: if function1 uses some variables that are not local, should they be common to all the
threads that may be running at once, or should they be local to the thread?
depending on the answer, if there are global variables, you may have to store them as
real globals or as thread-specific data (or whatever it is called).

That's it for today. Good luck.

Smile | :)



Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets


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 
QuestionHow to add menu to CListbox? Pin
Gofur Halmurat15-Nov-07 9:46
Gofur Halmurat15-Nov-07 9:46 

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.