Click here to Skip to main content
15,924,581 members
Home / Discussions / C#
   

C#

 
GeneralRe: Moron of the day award... Pin
Ravi Bhavnani20-Feb-06 6:29
professionalRavi Bhavnani20-Feb-06 6:29 
AnswerRe: Moron of the day award... Pin
leppie20-Feb-06 10:53
leppie20-Feb-06 10:53 
QuestionWeb service Pin
magnifique20-Feb-06 5:45
magnifique20-Feb-06 5:45 
QuestionNameValueCollection or HashTable Pin
student_rhr20-Feb-06 5:34
student_rhr20-Feb-06 5:34 
GeneralRe: NameValueCollection or HashTable Pin
Guffa20-Feb-06 7:04
Guffa20-Feb-06 7:04 
AnswerRe: NameValueCollection or HashTable Pin
NatLang20-Feb-06 9:12
NatLang20-Feb-06 9:12 
AnswerRe: NameValueCollection or HashTable Pin
leppie20-Feb-06 10:57
leppie20-Feb-06 10:57 
QuestionDesign Strategy Question Pin
gantww20-Feb-06 5:28
gantww20-Feb-06 5:28 
Ok,
Here's a design question that has me stumped. Let's say I have a windows forms application that is sitting on top of a business layer, that sits on top of a database. Now, let's say that a particular object may be accessed by multiple views in the system at the same time. Instead of creating a new instance of the object for each view (which means that they will get out of sync), I'd like to have a single instance of the object be used in both places. This is easily done because my business object controller class (that actually instantiates the objects) can keep a lookup table that tracks instantiated objects and indexes them by their unique id (the one from the database). However, this breaks down over time, as the business object controller class never releases the reference to the object (which may be quite large in some cases). Basically, what I need is some sort of reference counting scheme that will actually work.
I suspect that something like this is probably already built into the framework, but I haven't found it yet. Any ideas? Or am I approaching the design from the wrong angle...?

Thanks,
Will Gant
AnswerRe: Design Strategy Question Pin
Alvaro Mendez20-Feb-06 6:34
Alvaro Mendez20-Feb-06 6:34 
GeneralRe: Design Strategy Question Pin
gantww20-Feb-06 7:35
gantww20-Feb-06 7:35 
GeneralRe: Design Strategy Question Pin
Alvaro Mendez20-Feb-06 8:06
Alvaro Mendez20-Feb-06 8:06 
GeneralRe: Design Strategy Question Pin
gantww21-Feb-06 14:04
gantww21-Feb-06 14:04 
QuestionForm Close Pin
mostafa_h20-Feb-06 5:05
mostafa_h20-Feb-06 5:05 
AnswerRe: Form Close Pin
User 665820-Feb-06 5:09
User 665820-Feb-06 5:09 
GeneralRe: Form Close Pin
Judah Gabriel Himango20-Feb-06 5:12
sponsorJudah Gabriel Himango20-Feb-06 5:12 
GeneralRe: Form Close Pin
delphidab22-Feb-06 7:12
delphidab22-Feb-06 7:12 
AnswerRe: Form Close Pin
Alvaro Mendez20-Feb-06 7:39
Alvaro Mendez20-Feb-06 7:39 
GeneralRe: Form Close Pin
mostafa_h20-Feb-06 9:29
mostafa_h20-Feb-06 9:29 
GeneralRe: Form Close Pin
Alvaro Mendez20-Feb-06 10:02
Alvaro Mendez20-Feb-06 10:02 
GeneralRe: Form Close Pin
mostafa_h21-Feb-06 2:39
mostafa_h21-Feb-06 2:39 
QuestionTrying to create a Web-Like Menu Pin
Jettajon20-Feb-06 4:49
Jettajon20-Feb-06 4:49 
QuestionWhen we can convert STRUCT into CLASS ? Pin
Ariston Darmayuda20-Feb-06 4:44
Ariston Darmayuda20-Feb-06 4:44 
AnswerRe: When we can convert STRUCT into CLASS ? Pin
Judah Gabriel Himango20-Feb-06 4:49
sponsorJudah Gabriel Himango20-Feb-06 4:49 
QuestionDataGridView and ComboBox Pin
zaboboa20-Feb-06 4:10
zaboboa20-Feb-06 4:10 
AnswerRe: DataGridView and ComboBox Pin
USrinivas20-Feb-06 17:12
USrinivas20-Feb-06 17:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.