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); } }
|