Home Support Site Search Faq Register Login  
FileUp
Re: FileUpEE for ASP/ASP.NET Version 5.1.2.58 and memory leak ?

Thread Starter: rdm   Started: 10-15-2012 1:21 PM   Replies: 3
  15 Oct 2012, 1:21 PM
rdm is not online. Last active: 5/21/2015 1:53:17 PM rdm

Top 10 Posts
Joined on 10-15-2012
Posts 4
FileUpEE for ASP/ASP.NET Version 5.1.2.58 and memory leak ?

I am new in this, did not use FileUp before and do not have expirience with this.
Found that FileUpEE for ASP/ASP.NET Version 5.1.2.58 has memory leak [we used profiler to find it]

This is simple code snipet that we are using to transfer file, that is leaking memory :

                using (FileUpEe fe = new FileUpEe())
                {
                    fe.TransferStage = saTransferStage.saWebServer;
                    fe.TransferFile(Context, filePath, fileServerUri);
                }

My question is , does version 5.1.2.58 have known memory leak issue ?
Do we need to use the latest version ?


  
  16 Oct 2012, 9:54 AM
Joy_M is not online. Last active: 6/3/2014 2:57:00 PM Joy_M

Top 10 Posts
Joined on 12-15-2004
Posts 579

SoftArtisans Technical Services

Support team
Re: FileUpEE for ASP/ASP.NET Version 5.1.2.58 and memory leak ?

There were some memory leaks fixed in version 5.1.0 but we are not aware of any in more recent versions.  Not calling Dispose() could cause problems, but I see you are using a "using" block which should take care of that.  Can you provide more details about what you are seeing?  What is the size of the apparent leak?  We can look into this and get back to you.   

Thanks,

Joy


  
  09 Nov 2012, 4:07 PM
rdm is not online. Last active: 5/21/2015 1:53:17 PM rdm

Top 10 Posts
Joined on 10-15-2012
Posts 4
Re: FileUpEE for ASP/ASP.NET Version 5.1.2.58 and memory leak ?

SORRY for late answer.

 

Memory leak reason is :

USING statement will not RELEASE memory of new instance of FileUpEe component

Create WEB app and run next statement in loop [as in my app] and you will see memory leak immediately in windows performance monitor [check private bytes counter] or any memory tool..

 

 

I have simple web test app but could not figure out how to attach zip file on this post ?

 

But it is really loop around USING statement ,exactly as this :

 

 

for (int ii = 0; ii <10000; ii++)
{
       //memory leak is related with init new instance of FileUpEe
        //using statment will not release memory
         using (FileUpEe fe = new FileUpEe())
          {
               fe.TransferStage = saTransferStage.saWebServer;

                   //transfer will not cause memory leak, comment it
                  //fe.TransferFile(Context, incomingFileURL, fileServerUri);
           }
}

 

 

 

 

 


  
  11 Nov 2012, 9:16 AM
Joy_M is not online. Last active: 6/3/2014 2:57:00 PM Joy_M

Top 10 Posts
Joined on 12-15-2004
Posts 579

SoftArtisans Technical Services

Support team
Re: FileUpEE for ASP/ASP.NET Version 5.1.2.58 and memory leak ?

A using statement should be equivalent to calling Dispose in a finally block which should cause all unmanaged resources to be released.  FileUp includes both managed and unmanaged code.  The .NET part of FileUp will not be cleaned up until the garbage collector actually does a collection.  In a .NET application, it is normal for memory to go up until the next garbage collection, so I don't think just looking at private bytes will tell you anything definitive. You could try calling the garbage collector explicitly in every loop, or you could use a .NET memory profiler that looks deeper into what's happening with memory in the CLR.  Please let us know what you find.

Thanks,

Joy


  
 Page 1 of 1 (4 items)
SoftArtisans Forums » SoftArtisans Products » FileUp » Re: FileUpEE for ASP/ASP.NET Version 5.1.2.58 and memory leak ?