TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Thomas Seeling
from: Russell Coker
date: 1995-08-29 21:42:00
subject: Tidbits

RI> code, Visual C zero's out the FILE pointer after a fclose() and any
TS>I cannot imagine that. The prototype is "int fclose(FILE 
TS>*)", so how should it be possible to zero the pointer 
TS>itself? To do what you tell here, it would have to be 
TS>something like "int fclose(FILE **)".

If fclose() was declared in the following way it would be compatible with
all existing code and zero the pointer if compiled in C++: #ifdef
__CPLUS_PLUS
int fclose(FILE *&);
#else
int fclose(FILE *);
#endif

 RI>  CSet just leaves the FILE pointer a mess which causes a trap on
 RI> fprintf().
TS>This is up to the compiler implementors.

 RI> Is there a way to really kill a process/session?
TS>Huh? Is this related to the same problem?

   It appears to be impossible to kill an OS/2 program if it does certain
bad things.  EG  If one thread is sleeping on a resource such as a
semaphore and the thread which is supposed to wake it has exited...

   If someone knows how to kill such a program then please tell me.

  cya
___
 X MR/2 2.0 NR X Are you using Windows, or is that just an XT?

--- Maximus/2 2.02
* Origin: Multi - 61-3-9739-7145 - multi.apana.org.au (3:633/363)
SEEN-BY: 620/243 632/103 341 348 363 998 633/154 252 260 362 363 371 373
SEEN-BY: 634/384 635/301 502 503 638/102 639/100 640/820 690/660 711/409 410
SEEN-BY: 711/413 430 807 808 809 934 949 955 712/515 713/888 800/1 7877/2809
@PATH: 633/363 260 371 635/503 632/348 711/409 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™.