EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Problems with TElVFSEntryInformation, string Properties disappearing

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
Posted: 11/20/2013 06:02:35
by ITSG (Standard support level)
Joined: 06/27/2013
Posts: 34

Hi there,

we have some strange behavior since updating to the newest SBlackbox Version.
we are using the EntryInformation for the FTP Server in a dictionary:

private Dictionary<long, TElVFSEntryInformation> _allFiles;

Creating the Folder Content for Displaying in the FTP Client works fine.
When i now try to download or delete a file, the Properties Name,Fullname and OwnerName get lost. They are all "" (not null), other Properties stay as selected (Filetype, Size and all Dates)
And our code does def. not manipulate the TElVFSEntryInformation Object...

I tested without the dictionary and we still loose all string properties in this object...

Any Ideas ?

Posted: 11/20/2013 06:09:01
by Eugene Mayevski (EldoS Corp.)

Most likely the following happens:

You try to hold the object which you don't own (i.e. which you didn't create). What happens is that the object is disposed of by the owner (some SecureBlackbox class).

Doing what you do worked only by accident and never works in non-managed editions of SecureBlackbox. Since version 11 this won't work in managed code as well.

What should be done (IF the above is the case) is that you create a copy of the object and hold it as long as you need.

Sincerely yours
Eugene Mayevski
Posted: 11/20/2013 06:11:25
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

We've improved memory management in the latest 11th version of SecureBlackbox, so most likely these values are disposed. This may occur is you dispose TElVFSEntryInformationList with the entries or dispose each entry separately.

Its hard to say the exact reason without seen the source code. You may sent it via Helpdesk.
Posted: 11/20/2013 07:10:27
by ITSG (Standard support level)
Joined: 06/27/2013
Posts: 34

many thanks again for the ultra fast replies.
We are now cloneing the objects before assigning them to the list object.
Works fine.




Topic viewed 687 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!