TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Richard Illes
from: Peter Fitzsimmons
date: 1995-08-19 01:38:56
subject: tidbits

RI> While porting a program from unix to CSet/2 I found out the original
 RI> code did a fopen().. then later performed a fclose() and called a
 RI> routine which did fprintf() to that fopen FILE pointer.. the original
 RI> unix code worked fine, another team porting to NT with Visual C also had
 RI> no problem.. Cset created an exception.  After doing a debug on the
 RI> code, Visual C zero's out the FILE pointer after a fclose() and any
 RI> further fprintf() to this pointer causes nothing to happen.. CSet just
 RI> leaves the FILE pointer a mess which causes a trap on fprintf().

Then you should thank Cset for finding what is clearly a bug in your code!


 RI> Is there a way to really kill a process/session? Nothing more irritating
 RI> then having a test program hang, and not be able to get rid of it other
 RI> then rebooting the machine!

Search for a program like killem.zip.



--- Maximus/2 3.00
* Origin: Sol 3 * Toronto * V.32 * (905)858-8488 (1:259/414)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 259/414 400 99 250/99 3615/50 396/1 270/101 105/103 42 712/515
@PATH: 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™.