Re: Memory Leak Problem
- From: nospam@xxxxxxxxxxxxx (Richard Maine)
- Date: Thu, 19 Jun 2008 09:29:00 -0700
e p chandler <epc8@xxxxxxxx> wrote:
12. [I don't understand POINTER in Fortran very well.] Is it standard
to use rout, which has a pointer attribute, as an argument and then
ALLOCATE it inside your subroutine?
Yes - perfectly ordinary and standard. That does require that the dummy
argument also have the pointer attribute and that the procedure have an
explicit interface, but both of those conditions are met.
I doubt I'd have done this problem quite that way, but it is standard
and shouldn't cause problems.
--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.
- References:
- Memory Leak Problem
- From: babakh99
- Re: Memory Leak Problem
- From: e p chandler
- Memory Leak Problem
- Prev by Date: Pointer to pointer to BSTR?
- Next by Date: Re: Memory Leak Problem
- Previous by thread: Re: Memory Leak Problem
- Next by thread: Newbie link problem: won't link clearly defined symbols
- Index(es):
Relevant Pages
|