473,386 Members | 1,886 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Count Of References on a object

Hi,

I am trying to implement a pooling system Is there any way i can get
a count of references of an object.

I am thinking of basing it on this.

http://aspalliance.com/1131_Understa...g_in_Microsoft...

Please help and TIA
Mar 6 '08 #1
3 1207
On Thu, 06 Mar 2008 13:31:40 -0800, parez <ps*****@gmail.comwrote:
Hi,

I am trying to implement a pooling system Is there any way i can get
a count of references of an object.
What was wrong with the reply you got last time you asked this exact same
question? Why are you starting a whole new thread?
Mar 6 '08 #2
On Mar 6, 5:21 pm, "Peter Duniho" <NpOeStPe...@nnowslpianmk.com>
wrote:
On Thu, 06 Mar 2008 13:31:40 -0800, parez <psaw...@gmail.comwrote:
Hi,
I am trying to implement a pooling system Is there any way i can get
a count of references of an object.

What was wrong with the reply you got last time you asked this exact same
question? Why are you starting a whole new thread?
---- Previous reply-------
..NET prefers explicit Close/Dispose for its connection pools.

I think you should follow their example.

Arne
--------------
I really didnt understand..
Is he trying to say that objects in th pools must implement
IDisposable. and in my Dispose method inform the Object pool that this
object is available?
Mar 6 '08 #3
parez wrote:
On Mar 6, 5:21 pm, "Peter Duniho" <NpOeStPe...@nnowslpianmk.com>
wrote:
>On Thu, 06 Mar 2008 13:31:40 -0800, parez <psaw...@gmail.comwrote:
>>Hi,
I am trying to implement a pooling system Is there any way i can get
a count of references of an object.
What was wrong with the reply you got last time you asked this exact same
question? Why are you starting a whole new thread?

---- Previous reply-------
.NET prefers explicit Close/Dispose for its connection pools.

I think you should follow their example.
--------------
I really didnt understand..
Is he trying to say that objects in th pools must implement
IDisposable. and in my Dispose method inform the Object pool that this
object is available?
There are other ways.

But doing it the way MS does .NET framework is probably objectively
good (because MS has spend time considering different solutions) and
definitely subjective good (because C# programmers are used to
the pattern).

Arne
Mar 7 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: jsnX | last post by:
hi, i would like to make some code that operates on sets of points - does convex hulls and other operations. but it looks like i will need a lot of pointless object copies: ...
3
by: Jay | last post by:
Using a custom mda file that holds the code for the login sequence for multiple Access 2000 databases. The problem occurs when the reference path is changed to a UNC path. This happens when...
5
by: ken | last post by:
Hi, I'm using a reference dll file for my database. Its FEBE so the front ends need to have the reference. How can I have the front end automatically detect the reference if its in the same...
4
by: Fabrizio | last post by:
Hi I cannot figure why it isn't possible to cast a struct array to an object array. I written a structure like this: public struct Test { private int TestA; private int TestB;
35
by: MuZZy | last post by:
Hi All, I got a issue here and hope someone can help me: Let's consider this code: // =================== CODE START ================================= using System; using System.Data; ...
7
by: Martin Robins | last post by:
I am currently looking to be able to read information from Active Directory into a data warehouse using a C# solution. I have been able to access the active directory, and I have been able to return...
5
by: Michael Moreno | last post by:
Hello, In a class I have this code: public object Obj; If Obj is a COM object I would like to call in the Dispose() method the following code: ...
2
by: Alan Foxmore | last post by:
Hi Everyone, I'm new to ASP.NET so maybe this is easy. I'm using ASP.NET 2.0. I'm finding that the Application object (the HttpApplicationState object) is allowing me to add the same key...
0
by: Robert Schneider | last post by:
I would like to find out if an object A is accessible from object B. But consider indirections as well. So object B might access oject C and object C references object D through a collection (what...
2
by: cendter | last post by:
Hi there, I am utterly confused - I have a form that starts an instance from excel and let's the user select a range. I then want to take this range as an array of doubles. I ran into trouble...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.