By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,190 Members | 1,063 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,190 IT Pros & Developers. It's quick & easy.

How to delete multidimesional array in Visual C++ .Net 2008?

P: 4

I have Class name as MyClass and created multidimesional array of object.
Example is given below.

// clr_array.cpp
// compile with: /clr
ref class MyClass {};
int main() {
array<MyClass ^> ^ MyArray = gcnew array<MyClass ^>(100);

I have problem, how can delete this array of objects.?
Dec 17 '08 #1
Share this Question
Share on Google+
2 Replies

P: 61
Try to use Dispose method if one such exists.
Dec 20 '08 #2

Expert 2.5K+
P: 3,525
Have you tried MyArray = null; ??
Dec 20 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.