| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Named Pipes |
LR> The other author has tried several different code
LR> compiles, and they all work on his system, but none of them
LR> work on any system here (I've tried several). I'm running
LR> Warp 3.0 on several different platforms with varied
LR> hardware. Does anyone out there have any ideas?
DN> I had loads of problems using named pipes using a Borland C/C++
DN> compiler.
I'm using a DOS compiler, not an OS/2 compiler.
DN> The fact that TYPE and MORE can handle the pipe indicates that it is
DN> being created correctly.
Try re-reading my post again. TYPE and MORE *DO NOT* handle the
pipe properly. On *HIS* system (according to him) they do. On *MY* system
their behavior is bizarre (quoting my original):
On his system, the pipe works just fine. He has named it DMPstat. He can
start his application, then run 'TYPE \pipe\DMPstat' or 'MORE <
\pipe\DMPstat' and the synch strings come across to STDout just fine.
However, when I run his code, it doesn't work. Prior to running his code,
I of course get:
SYS0002: The system cannot find the file specified.
"\pipe\DMPstat"
After his code is active, the line produces no error, but the
command line freezes, with no output. releases
the process, but then further attempts produce:
SYS0231: The pipe is in use by another process.
"\pipe\DMPstat"
If left alone, the command line remains frozen until the code is
terminated, at which point the command prompt returns with no comment.
From then on, attempts to access the pipe meet with the SYS0231 error until
the main process is started again, at which point accessing the pipe
returns the same results shown above.
DN> Since these use the raw API, I suspect your
DN> compiler's run-time library is not handling it correctly, a la Borland.
Since these use the raw API, and they *DON'T* work, the API must
not be working, No? And since these problems exist WITHOUT using any
compile of mine, it can't be my compiler, can it?
DN> Which language, compiler and version/release are you using?
This was a quick whip-together under DOS Power Basic IV. I may
eventually port it to C++ or assembly, but right now the pipe itself isn't
working, and I don't want to break two things trying to fix one.
e-mail: lrhorer{at}fibrcom.com
--- EZPoint V2.2
* Origin: GUI? Ptui!!! --- Last Chance Pt 4 (1:387/800.4)SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809 @PATH: 387/800 31 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.