EldoS | Feel safer!

Software components for data protection, secure storage and transfer

StorageSearch Object

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#2658
Posted: 04/02/2007 08:00:15
by Datta Kandalkar (Basic support level)
Joined: 04/02/2007
Posts: 5

Dear Sir,

I want to create Object of the StorageSearch Structure. I am using VC++ .Net 2003. My code is unmanged code so when i try to create the object by using the following statement

SolFS::StorageSearch EldosSearch = new SolFS::StorageSearch;

i get the comiplation error saying "error C3255: 'SolFS::StorageSearch' : cannot dynamically allocate a value type object with managed members on C++ (nogc) heap"

i have tried the following variations also but getting same error

SolFS::StorageSearch EldosSearch = _nogc new SolFS::StorageSearch;

SolFS::StorageSearch EldosSearch = __gc new SolFS::StorageSearch;

So will anybody help me out in creating the above object.

Thanks
#2660
Posted: 04/02/2007 08:30:04
by Eugene Mayevski (EldoS Corp.)

Looks like you've mixed .NET and unmanaged C++ in some way.
First of all you need to check and ensure that you are using only unmanaged code (DLLs, Lib files etc) and not .NET assembly.


Sincerely yours
Eugene Mayevski
#2663
Posted: 04/03/2007 03:46:57
by Datta Kandalkar (Basic support level)
Joined: 04/02/2007
Posts: 5

I am using VC++ 2003 .NET. My code is unmanged code. The Dll which i am using is "SolFSNet.dll". With this dll i am able to do all the operations like, opening the SOLFS, Adding file to SOLFS, deleting file from SOLFS. I am also able to create the object of SolFSStorage using the statement "Storage = new SolFS::SolFSStorage();". But now as i want to perform the Search operaion i am unable to create the object of "SolFS::StorageSearch". As i said, i have already tried all the variations of creating the object.

I request you to please help me out and solve my problem

Thanks.

Datta Kandalkar
#2670
Posted: 04/03/2007 13:34:05
by Eugene Mayevski (EldoS Corp.)

Quote
Datta Kandalkar wrote:
My code is unmanged code. The Dll which i am using is "SolFSNet.dll".


This is WRONG, as I mentioned in the previous post.


Sincerely yours
Eugene Mayevski
#2679
Posted: 04/04/2007 03:41:48
by Datta Kandalkar (Basic support level)
Joined: 04/02/2007
Posts: 5

If i am using the "SolFSNet.dll", then how should i create the "SolFS::StorageSearch", if i make my code managed.

Thanks
#2680
Posted: 04/04/2007 04:32:15
by Eugene Mayevski (EldoS Corp.)



Sincerely yours
Eugene Mayevski
#2720
Posted: 04/10/2007 07:58:10
by Datta Kandalkar (Basic support level)
Joined: 04/02/2007
Posts: 5

In the link which you provided, you last feedback is is as below "Instances of a value type (see Classes and Structs (Managed)) that contain managed members can be created on the stack but not on the heap.

We will try to remove this "value" modifier from the code in future builds."

So, have you removed the "value" modified from the present code?

Also please give me the statement to create the object of the StorageSearch class.

Thanks
#2721
Posted: 04/10/2007 08:15:41
by Eugene Mayevski (EldoS Corp.)

Quote
Datta Kandalkar wrote:
So, have you removed the "value" modified from the present code?


No. There were no changes in this aspect.



Sincerely yours
Eugene Mayevski
#2729
Posted: 04/11/2007 05:22:27
by Datta Kandalkar (Basic support level)
Joined: 04/02/2007
Posts: 5

please give me the statement to create the object of the StorageSearch class.

Thanks
Datta K
#2730
Posted: 04/11/2007 05:39:01
by Eugene Mayevski (EldoS Corp.)

Please re-read the topic, referenced above.


Sincerely yours
Eugene Mayevski
Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.

Reply

Statistics

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