Re: FindFirstFile Possible Memory Leak
- From: "Michael C" <nospam@xxxxxxxxxx>
- Date: Wed, 13 Jun 2007 18:25:19 +1000
"Robert Morley" <rmorley@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:uqZK4kXrHHA.5092@xxxxxxxxxxxxxxxxxxxxxxx
Of course, if he'd Dim'd his variables up top, like most people do,
Actually most don't. Dimming at the top is just one of those things that is
considered the done thing in VB but no-one can give a good reason why they
do it. In other languages it's possible to reduce the scope of a variable
down even further so it only exists in a for loop or inside an if statement.
In these languages it makes sense to dim the variable with the minimum
amount of scope possible.
It also doesn't make any sense to me why we have all the code to perform a
certain task in a block but with the dims elsewhere.
Michael
.
- Follow-Ups:
- Re: FindFirstFile Possible Memory Leak
- From: Ralph
- Re: FindFirstFile Possible Memory Leak
- From: Rick Rothstein \(MVP - VB\)
- 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
- FindFirstFile Possible Memory Leak
- Prev by Date: Re: Error trapping
- Next by Date: Re: FindFirstFile Possible Memory Leak
- Previous by thread: Re: FindFirstFile Possible Memory Leak
- Next by thread: Re: FindFirstFile Possible Memory Leak
- Index(es):
Relevant Pages
|
Loading