comp.lang.ada
 help / color / mirror / Atom feed
Subject: Re: Gnat.Sockets.Stream memory "leak"
Date: Fri, 04 Jul 2003 12:23:38 +0200
Date: 2003-07-04T12:23:38+02:00	[thread overview]
Message-ID: <3f0555e1$1@epflnews.epfl.ch> (raw)
In-Reply-To: MPG.196d6434b4dc6d79989731@News.CIS.DFN.DE

Jano wrote:
> =?UTF-8?B?Um9kcmlnbyBHYXJjw61h?= <rodrigo.garcia.ARROBA.epfl.ch> dice...
> 
>>Jano wrote:
>>
>>
>>>And, as a side note, why doesn't exist a Stream_access type in 
>>>Ada.Streams? I find somewhat inconvenient defining it in my packages and 
>>>converting here and there.
>>
>>My opinion is that they left this for each concrete implementation of 
>>streams. For instance, Ada.Streams.Streams_IO has the Stream_Access type 
>>and GNAT.Sockets has it as well. You do not have to define it in your 
>>own packages.
> 
> 
> That's okay, I'm thinking more about when I need to store an access 
> somewhere (not merely pass it as an access parameter), being it 
> completely irrelevant what is the precise accessed stream. Then I need 
> to roll out my own stream_access to Root'Class.
> 

I do not understand you here... Why do you want to store an access to a 
stream? And where (in memory or in disk)? To store it in memory you only 
have to create a variable of the Stream_Access type...

Can you give an example of what you mean?

Rodrigo

PS: I would not worry about having to free the memory taken for the 
stream access as long as you close the socket.




  reply	other threads:[~2003-07-04 10:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-01 19:04 Gnat.Sockets.Stream memory "leak" Jano
2003-07-02  9:50 ` 
2003-07-02 20:51   ` Jano
2003-07-04 10:23     `  [this message]
2003-07-04 14:04       ` Jano
2003-07-07  8:39         ` 
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox