comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Read Windows login username in Ada 95
Date: Thu, 10 Nov 2011 11:26:21 -0700
Date: 2011-11-10T11:26:21-07:00	[thread overview]
Message-ID: <j9h51i$j0v$1@tornado.tornevall.net> (raw)
In-Reply-To: <18650574.2609.1320888091484.JavaMail.geo-discussion-forums@yqjc16>

On 11/09/2011 06:21 PM, Rego, P. wrote:
>
>> Who is responsible for freeing Answer_Ptr?
>
> If I included an Free(Answer_Ptr), would it solve this?

I don't know. My question was whether the pointer returned needs to be freed by 
the caller. Moran's response seems to indicate that it does not.

>> As Obry suggested, Ada.Environment_Variables is an all-Ada way to do this.
>
> That's the Ada 2005 problem I explained above.

Then you'll have to do something like this.

-- 
Jeff Carter
"Well, a gala day is enough for me. I don't think
I can handle any more."
Duck Soup
93



  parent reply	other threads:[~2011-11-10 18:27 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-09  1:19 Read Windows login username in Ada 95 Rego, P.
2011-11-09  5:05 ` tmoran
2011-11-10  0:02   ` Adam Beneschan
2011-11-10  1:17     ` Rego, P.
2011-11-09 10:44 ` Pascal Obry
2011-11-09 20:47 ` Rego, P.
2011-11-09 21:06   ` Pascal Obry
2011-11-10  1:16     ` Rego, P.
2011-11-09 21:52   ` Jeffrey Carter
2011-11-10  1:21     ` Rego, P.
2011-11-10  2:09       ` tmoran
2011-11-10 18:26       ` Jeffrey Carter [this message]
2011-11-10 23:13         ` Pascal Obry
2011-11-12 14:21           ` Rego, P.
2011-11-10 23:13         ` Pascal Obry
replies disabled

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