472,950 Members | 2,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,950 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 1062
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

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

Similar topics

7
by: Richard | last post by:
Hi all, I am looking for some help on understanding the overhead associated with object creation in Java. I am writing an application where I have written a class to encapsulate some text...
4
by: m. pollack. | last post by:
Hi all, Is there any information to be had about the "Object Collection Editor" that appears when you click on a collection property in the PropertyGrid control? I have a class that maintains a...
3
by: Jack Addington | last post by:
Quite new to C# but I am getting quite confused with Array's and ArrayLists. This is probably the same old iteration of a basic question but I can't seem to find a clear answer/example of this...
1
by: Jeremy S. | last post by:
I suspect I may be fundamentally misunderstanding how object variable references behave - and I'd sure appreciate some clarification - given my particular scenario. Summary: In an ASP.NET (1.1)...
2
by: Ric | last post by:
Please forgive me if i dont explain this situation correctly. i'll try to do my best. because the arraylist.add method only accepts one argument, i created an object with several public...
18
by: Microsoft | last post by:
When I try this in my code I alwas get an errormessage: "Object reference not set to an instance of an object" Dim g As System.Drawing.Graphics g.DrawString("Test", New Font("Arial", 12,...
1
by: Christopher Pragash | last post by:
Hello All, I created a class object and a console application to host the object as a Singleton Remoting Object. I overloaded the new inside the class object and loaded a private Arraylist with...
3
by: jtfaulk | last post by:
Re: ArrayList, Sort, Menu, IComparer, Object, multidemensional I have a multi-dimensional arraylist, and I would like to sort one level of it but not all. The multi-dimensional arraylist...
1
by: =?Utf-8?B?Q2hhcmxlcw==?= | last post by:
I'm running VS2008 & attempting to solve a problem I've encountered while developing some software for our business. Here's the basic idea...I've created a class that represents a file (with...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...

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.