V
VBProgrammer
I think I have found a memory leak using the DIR function and also
using the System.IO.File.Exists. Create a new windows application,
place a timer on the form, in the Timar1_Tick event put:
If Dir("C:\SomeFile.txt") = "" then
End If
The "C:\SomeFile.txt" doesn't need to exist. you can also see the same
thing using:
If System.IO.File.Exists("C:\SomeFile.txt") Then
End If
Watch the memory of the process in task manager, and it grows.
Anybody have any thoughts?
using the System.IO.File.Exists. Create a new windows application,
place a timer on the form, in the Timar1_Tick event put:
If Dir("C:\SomeFile.txt") = "" then
End If
The "C:\SomeFile.txt" doesn't need to exist. you can also see the same
thing using:
If System.IO.File.Exists("C:\SomeFile.txt") Then
End If
Watch the memory of the process in task manager, and it grows.
Anybody have any thoughts?