471,089 Members | 1,318 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,089 software developers and data experts.

Deletion of an object created in an ArrayList

20
Hi Frnds,
i need ur help to delete an object stored in an ArrayList(C#.Net.)I did try to use destructor but couldn't cleanup method to free the memory space.

Actually I have created a menu driven program about student information system which does 1. Insert the record ,2. Updating , 3.Deleting a record 4.Displaying a record.

I do not want to use ADO,Net here , I have used ArrayList to store studentrecord.

CAN ANYONE PLZZ HELP ME!! I LL BE VRY GRATEFUL TO HIM\HER!!!!
Nov 23 '06 #1
2 941
hey i have the same problem :S, can u post the code so i can see how u did the search code? ty bye
May 18 '07 #2
Frinavale
9,735 Expert Mod 8TB
Hi Frnds,
i need ur help to delete an object stored in an ArrayList(C#.Net.)I did try to use destructor but couldn't cleanup method to free the memory space.

Actually I have created a menu driven program about student information system which does 1. Insert the record ,2. Updating , 3.Deleting a record 4.Displaying a record.

I do not want to use ADO,Net here , I have used ArrayList to store studentrecord.

CAN ANYONE PLZZ HELP ME!! I LL BE VRY GRATEFUL TO HIM\HER!!!!
I'm not very clear on what the problem is.

Could you explain it in a little more detail?

Have you tried setting the object in the ArrayList to Null and letting the Garbage Collection clean it up?

You have to release any dynamically allocated memory in your object's Deconstructor.

Is this what you're having problems with?

-Frinny
May 18 '07 #3

Post your reply

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

Similar topics

7 posts views Thread by Richard | last post: by
4 posts views Thread by m. pollack. | last post: by
3 posts views Thread by Jack Addington | last post: by
1 post views Thread by Christopher Pragash | last post: by
1 post views Thread by =?Utf-8?B?Q2hhcmxlcw==?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.