swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SSTRDUP & memory management; file i/o tests and related


From: Marcus G. Daniels
Subject: Re: SSTRDUP & memory management; file i/o tests and related
Date: 18 Oct 1999 10:10:49 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "WS" == William S Shu <address@hidden> writes:

WS> I do not know how to deAllocate any memory claimed by SSTRDUP.

SFREEBLOCK, which is a macro that sends the scratchZone the free: method
with the block as an argument.

WS> On a separate note, how does one detect/test for end-of-line,
WS> end-of-file, read error, etc., after creating one with, say,
WS> f = [InFile create: [self getZone] withName: buf];

The various getWhatever methods in InFile have poor error handling
properties, they just return 0 if an input failed or 1 if it was successful.
It has been this way for a long time, and existing apps depend on
these poor properties. 

I urge you not to use this class and suggest using Archiver for data
handling.  If it isn't clear how to do that, describe your problem and
I'll describe the solution.  

If for some reason you don't want to do that, I suggest using stdio
directly.  In my opinion, InFile is worse than nothing.


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]