Click here to Skip to main content
16,006,442 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalcollections doubt Pin
carlos_rocha22-Apr-05 3:56
carlos_rocha22-Apr-05 3:56 
GeneralRe: collections doubt Pin
Dave Kreskowiak22-Apr-05 5:12
mveDave Kreskowiak22-Apr-05 5:12 
GeneralRe: collections doubt Pin
carlos_rocha22-Apr-05 7:42
carlos_rocha22-Apr-05 7:42 
GeneralRe: collections doubt Pin
Dave Kreskowiak22-Apr-05 13:17
mveDave Kreskowiak22-Apr-05 13:17 
GeneralRe: collections doubt Pin
rwestgraham22-Apr-05 14:11
rwestgraham22-Apr-05 14:11 
GeneralRe: collections doubt Pin
carlos_rocha25-Apr-05 22:31
carlos_rocha25-Apr-05 22:31 
GeneralRe: collections doubt Pin
rwestgraham26-Apr-05 13:09
rwestgraham26-Apr-05 13:09 
GeneralRe: collections doubt Pin
carlos_rocha26-Apr-05 22:19
carlos_rocha26-Apr-05 22:19 
Hi!Thanks on the great insight.I think the app is fairly well designed.My issue is that i have a thread that does some processing with one object and another thread (that enumerates the collection) is checking out the state of the objects.When the processing level determines that the object has reached the end of its life it changes its state and the cleanup thread (the one that enumerates the collection) deals with the object cleanup and removal.I'm trying to synchronize at these two levels.

What about readerWriterLock? That was my second choice.Doesn´t this strategy ensures security for reads and writes like you said? If this isn't ok i'll use mutexes and semaphores.

Note:i didn´t had so far any concurency issue but i'm sure that when i release the app for beta testing some will go wrong Big Grin | :-D

Once again thanks for all the help.

Never say never
GeneralRe: collections doubt Pin
rwestgraham1-May-05 10:19
rwestgraham1-May-05 10:19 
GeneralCannot copy… It is being used by another person Pin
KreativeKai22-Apr-05 3:50
professionalKreativeKai22-Apr-05 3:50 
GeneralRe: Cannot copy… It is being used by another person Pin
Dave Kreskowiak22-Apr-05 5:02
mveDave Kreskowiak22-Apr-05 5:02 
GeneralRe: Cannot copy… It is being used by another person Pin
KreativeKai22-Apr-05 6:22
professionalKreativeKai22-Apr-05 6:22 
GeneralRe: Cannot copy… It is being used by another person Pin
Dave Kreskowiak22-Apr-05 7:05
mveDave Kreskowiak22-Apr-05 7:05 
GeneralRe: Cannot copy… It is being used by another person Pin
Dave Kreskowiak22-Apr-05 7:14
mveDave Kreskowiak22-Apr-05 7:14 
GeneralRe: Cannot copy… It is being used by another person Pin
rwestgraham25-Apr-05 9:01
rwestgraham25-Apr-05 9:01 
Generalweb services Pin
muktajoshi_1022-Apr-05 1:40
muktajoshi_1022-Apr-05 1:40 
GeneralRe: web services Pin
Dave Kreskowiak22-Apr-05 4:55
mveDave Kreskowiak22-Apr-05 4:55 
GeneralError Handling Pin
dpagka21-Apr-05 23:38
dpagka21-Apr-05 23:38 
GeneralRe: Error Handling Pin
Colin Angus Mackay22-Apr-05 0:01
Colin Angus Mackay22-Apr-05 0:01 
GeneralRe: Error Handling Pin
Dave Kreskowiak22-Apr-05 1:05
mveDave Kreskowiak22-Apr-05 1:05 
GeneralRe: Error Handling Pin
toxcct22-Apr-05 1:35
toxcct22-Apr-05 1:35 
GeneralRe: Error Handling Pin
Dave Kreskowiak22-Apr-05 4:51
mveDave Kreskowiak22-Apr-05 4:51 
GeneralRe: Error Handling Pin
toxcct23-Apr-05 0:44
toxcct23-Apr-05 0:44 
GeneralRe: Error Handling Pin
Dave Kreskowiak23-Apr-05 2:35
mveDave Kreskowiak23-Apr-05 2:35 
GeneralLinking MSDN... Pin
Anonymous21-Apr-05 23:38
Anonymous21-Apr-05 23:38 

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.