Click here to Skip to main content
15,889,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Directshow Pin
Zizilamoroso20-Aug-02 22:47
Zizilamoroso20-Aug-02 22:47 
Generalbutton focus on w2k Pin
gdourmap@lemel.fr20-Aug-02 6:40
sussgdourmap@lemel.fr20-Aug-02 6:40 
Generaldifference between overwrite PretanslateMessage And OnDefWindowProc Pin
Rene De La Garza20-Aug-02 6:40
Rene De La Garza20-Aug-02 6:40 
GeneralShowing content of wnd while moving Pin
MaTrIX2k220-Aug-02 6:29
MaTrIX2k220-Aug-02 6:29 
GeneralCalculate bounding rect of text __@_y Pin
BlackSmith20-Aug-02 5:41
BlackSmith20-Aug-02 5:41 
GeneralRe: Calculate bounding rect of text __@_y Pin
Roger Allen20-Aug-02 5:49
Roger Allen20-Aug-02 5:49 
GeneralRe: Calculate bounding rect of text __@_y Pin
Ravi Bhavnani20-Aug-02 7:37
professionalRavi Bhavnani20-Aug-02 7:37 
GeneralHelp: named pipe Pin
tfElep20-Aug-02 5:20
tfElep20-Aug-02 5:20 
named, message-oriented, blocked pipe

Server: one thread, ReadFile, then processes it, then WriteFile.

Client: two threads:
ThreadSend: WriteFile, the content is from console.
ThreadRecv: blocked ReadFile, then processes what is read;

It is found that when ThreadRecv is blocked reading (nothing read), the write operation in ThreadRecv will also be blocked, nothing is written to the pipe and the server gets nothing from it.

When I put the WriteFile and ReadFile into one thread on the client side, everything works well (one thread, ReadFile, then processes it, then WriteFile). It seems that the blocked ReadFile blocks the WriteFile. Is there anyone who knows why this happens and how it can be solved?

Thanks a lot.

Tiny Flying Elephant loves flying...
GeneralRe: Help: named pipe Pin
PJ Arends20-Aug-02 6:07
professionalPJ Arends20-Aug-02 6:07 
GeneralRe: Help: named pipe Pin
Philip Fitzsimons20-Aug-02 6:14
Philip Fitzsimons20-Aug-02 6:14 
Generalfile fopen... Pin
pnpfriend20-Aug-02 4:48
pnpfriend20-Aug-02 4:48 
GeneralRe: file fopen... Pin
Lakitu20-Aug-02 4:55
Lakitu20-Aug-02 4:55 
GeneralRe: file fopen... Pin
pnpfriend20-Aug-02 5:17
pnpfriend20-Aug-02 5:17 
GeneralRe: file fopen... Pin
Michael P Butler20-Aug-02 5:17
Michael P Butler20-Aug-02 5:17 
GeneralRe: file fopen... Pin
Mike Nordell20-Aug-02 5:31
Mike Nordell20-Aug-02 5:31 
GeneralRe: file fopen... Pin
pnpfriend20-Aug-02 5:59
pnpfriend20-Aug-02 5:59 
GeneralRe: file fopen... Pin
pnpfriend20-Aug-02 7:04
pnpfriend20-Aug-02 7:04 
GeneralReading the combo box edit portion Pin
Shay Harel20-Aug-02 4:46
Shay Harel20-Aug-02 4:46 
GeneralRe: Reading the combo box edit portion Pin
Lakitu20-Aug-02 5:09
Lakitu20-Aug-02 5:09 
GeneralRe: Reading the combo box edit portion Pin
Shay Harel20-Aug-02 5:17
Shay Harel20-Aug-02 5:17 
GeneralRe: Reading the combo box edit portion Pin
Lakitu20-Aug-02 5:30
Lakitu20-Aug-02 5:30 
GeneralRe: Reading the combo box edit portion Pin
Shay Harel20-Aug-02 5:40
Shay Harel20-Aug-02 5:40 
Generaltime woes Pin
Lakitu20-Aug-02 4:12
Lakitu20-Aug-02 4:12 
GeneralRe: time woes Pin
Ravi Bhavnani20-Aug-02 4:44
professionalRavi Bhavnani20-Aug-02 4:44 
GeneralRe: time woes Pin
Lakitu20-Aug-02 4:49
Lakitu20-Aug-02 4:49 

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.