This message was edited by suburbanmt at 2006-2-13 11:5:33
The problem is that the application i'm developing is quite dependent on performance, so using an arraylist for the job wouldn't be that efficient. Do you have any suggestions regarding any other available data structures?
Thanks for your help
: I am not sure there is a way, but if there were, it is probably extremely dangerous. So there probably isn't.
: The thing is that the Framework cannot keep track of references stored in unmanaged code. So there is a great risk that the Framework's garbage collector destroys the instance of your class while your unmanaged linked list still holds a reference to it.
: Reading the instance back from the list and using it will then result in disaster.
:
:
: : Hi,
: :
: : I have a linked list which is built using unmanaged code. Is there a way in which I can store a non-primitive object such as a class instance? What i want is to be able to store an instance of Class1 for example in the list and than read the instance from the list.
: :
: : Thanks
: :
:
:
: Greets,
: Eric Goldstein
: www.gvh-maatwerk.nl
:
: