Re: FindFirstFile Possible Memory Leak
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Wed, 13 Jun 2007 15:26:04 -0500
"Robert Morley" <rmorley@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:%237ylDSfrHHA.884@xxxxxxxxxxxxxxxxxxxxxxx
I see your point here, though in the end, I'm in agreement with Rick andBob
on this one.
And why not? <g>
Wirth and Dijkstra weren't dummies - Formal restrictions and Top-Down
programming works.
as
It's interesting what you say about adding to the stack during
the execution of the procedure, as it has the advantage of only consuming
many resources as necessary, but the obvious disadvantage that you have to
run code each time to allocate more memory, do whatever maintenance is
required, etc., instead of just doing it once at the beginning of the
function call. If you accidentally do this in a loop, there would be some
very significant performance hits, I would imagine.
Don't take my outline too literally. The 'addition' to the stack for
internal blocks takes place during the build not at runtime. And not all
compilers worked the same way. Loop optimization and deeper parsers for this
as well as other conditions soon changed the landscape.
terms.
Of course, as I've mentioned before, I really found Pascal to my liking
"back in the day"...the structure of it really appealed to me. So it
shouldn't be any wonder that I still tend to think and work in those
Again, why not? Wirth wasn't a dummy. At least Pascal was designed - Basic
sort of just grew. <g>
-ralph
<snipped>
.
- Follow-Ups:
- Re: FindFirstFile Possible Memory Leak
- From: Tony Proctor
- Re: FindFirstFile Possible Memory Leak
- References:
- FindFirstFile Possible Memory Leak
- From: Stefan Berglund
- Re: FindFirstFile Possible Memory Leak
- From: Bob O`Bob
- Re: FindFirstFile Possible Memory Leak
- From: Robert Morley
- Re: FindFirstFile Possible Memory Leak
- From: Michael C
- Re: FindFirstFile Possible Memory Leak
- From: Ralph
- Re: FindFirstFile Possible Memory Leak
- From: Robert Morley
- FindFirstFile Possible Memory Leak
- Prev by Date: Re: Compile Only
- Next by Date: Re: Compile Only
- Previous by thread: Re: FindFirstFile Possible Memory Leak
- Next by thread: Re: FindFirstFile Possible Memory Leak
- Index(es):
Loading