EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Sftp (7.0.155) - Memory Leak

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#9921
Posted: 05/06/2009 01:41:22
by Eugene Marmiy (Basic support level)
Joined: 05/06/2009
Posts: 26

After uploading of a file and program closing there is an error (look Erro1.jpg).
Has done the same operations on your example, a similar error occurs (look Error2.jpg). I release all objects.


[ Download ]
#9922
Posted: 05/06/2009 01:53:37
by Ken Ivanov (EldoS Corp.)

Thank you for contacting us.

Please see the knowledgebase article regarding the memory leak shown on the Error1.jpg image.

Regarding the second set of "leaks", it's a lack of the sample application who erroneously does not release the created TElSftpFileInfo instances. We will fix the sample.
#9923
Posted: 05/06/2009 02:07:18
by Eugene Marmiy (Basic support level)
Joined: 05/06/2009
Posts: 26

Quote
Please see the knowledgebase article regarding the memory leak shown on the Error1.jpg image.

But when I complete the application there is the error. If not to upload files errors are not present. After uploading a file I delete all created objects.
#9924
Posted: 05/06/2009 02:38:18
by Ken Ivanov (EldoS Corp.)

The leaking objects are actually created in the Refresh() method of the main form of the sample:
Code
      for I := 0 to dirList.Count - 1 do
      begin
        Info := TElSftpFileInfo.Create;
        ...
        Item := lvFiles.Items.Add;
        Item.Data := Info;
        ...


However, ClearFileList() method that releases those objects is not called when the application terminates. Call it inside the handler of OnDestroy form event to have the leaks gone.
#9926
Posted: 05/06/2009 03:17:13
by Eugene Marmiy (Basic support level)
Joined: 05/06/2009
Posts: 26

I have added function in yours example. But after sending and at the application closing there is the error, similar Error1.jpg. (Look Eror3.jpg)


#9927
Posted: 05/06/2009 03:19:28
by Eugene Marmiy (Basic support level)
Joined: 05/06/2009
Posts: 26

How to rectify this error?
#9931
Posted: 05/06/2009 05:36:07
by Ken Ivanov (EldoS Corp.)

The "error" from the last screenshot is described in the article I have referred to above. CryptoProviderManager is a global object that should not be freed until the application exits (and that's why it is never freed).
#10019
Posted: 05/14/2009 01:36:24
by Eugene Marmiy (Basic support level)
Joined: 05/06/2009
Posts: 26

After use functions SBUtils. CleanupRegisteredGlobalObjects () here that writes: (look Memory1). What I should make, that memory completely to clear and deliver from the warning.


#10021
Posted: 05/14/2009 08:38:37
by Ken Ivanov (EldoS Corp.)

Are the same leaks reported for the sample application (with CleanupRegisteredGlobalObjects() call added)?
#10022
Posted: 05/14/2009 08:58:02
by Eugene Marmiy (Basic support level)
Joined: 05/06/2009
Posts: 26

Quote
Innokentiy Ivanov wrote:
Are the same leaks reported for the sample application (with CleanupRegisteredGlobalObjects() call added)?


Yes, look at Memory2


Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages

Reply

Statistics

Topic viewed 5817 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!