Author: santokh3386 | Posted on: 5/17/2010 11:02:10 AM | Views : 411

Dear All,
              Actually i have developed an application which works on main thread.and that main thread is creating the other threads.
Actually i am reading some Excel and CSV File to read data and upload that data to SQL Server. For that purpose I am getting the no of files using fileinfo object then running a loop to read these files.
I posted this work to a seperate thread.As the file going to that thread the memory usage by my application is increasing repidly and at the end my system stops working even my application too.
 
fi =
PassFiles(fi, Functions.GetFiles(path, "*.CSV"); Go to the complete details ...