G
Guest
I am storing an array of strings in an unmanaged MFC class using gcroot as
follows:
gcroot<array<System::String^>^> m_pArr;
Nothing out of the ordinary there. However, if I try to use "delete m_pArr"
in the code in order to deterministically delete it, I get the following
error in VS05:
error C2440: 'delete' : cannot convert from 'gcroot<T>' to 'void *'
If I use the same with something other than an array i.e. using gcroot and
then doing a delete, its fine.
Any ideas on why the compiler is throwing this error?
Thanks.
follows:
gcroot<array<System::String^>^> m_pArr;
Nothing out of the ordinary there. However, if I try to use "delete m_pArr"
in the code in order to deterministically delete it, I get the following
error in VS05:
error C2440: 'delete' : cannot convert from 'gcroot<T>' to 'void *'
If I use the same with something other than an array i.e. using gcroot and
then doing a delete, its fine.
Any ideas on why the compiler is throwing this error?
Thanks.