home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.win32
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!caen!sol.ctr.columbia.edu!ira.uka.de!rz.uni-karlsruhe.de!insu1.etec.uni-karlsruhe.de!walter
- From: walter@insu1.etec.uni-karlsruhe.de (Reiner Walter)
- Subject: problems with "pipe"-call
- Message-ID: <1992Nov19.110355.15662@rz.uni-karlsruhe.de>
- Sender: usenet@rz.uni-karlsruhe.de (USENET 'No news is bad news' News System)
- Organization: Institut fuer Nachrichtensysteme, Uni Karlsruhe
- Date: Thu, 19 Nov 1992 11:03:55 GMT
- Lines: 31
-
-
- Hi !!!
-
- When I run the executable file resulting of the following source code,
- I am getting the message "call _pipe" on the screen and then a dialog box
- appears: << Application error. The instruction at "0x004110a2" referenced memory
- at "0x0012fa 84". The memory could not be written. >>
-
-
- #include <fcntl.h>
- #include <stdio.h>
- #include <io.h>
- #include <stdlib.h>
-
- void main(void)
- {
- int *phandle[1], handle_write, handle_read;
-
- printf("call _pipe\n");
- if(_pipe(*phandle, 1024, O_BINARY) != 0) perror("pipecreation error");
- printf("readhandle: %d\n",handle_read = *phandle[0]);
- printf("writehandle: %d\n",handle_write = *phandle[1]);
- close(handle_read);
- close(handle_write);
- printf("handles closed\n");
- return;
- }
-
- If anybody can help me, please send me an e-mail, thanks.
-
- Bye, Uli.
-