Click here to Skip to main content
15,899,754 members
Home / Discussions / C#
   

C#

 
GeneralRe: Advice needed (about creating a TextBox like control) Pin
Cristoff16-May-06 1:13
Cristoff16-May-06 1:13 
GeneralRe: Advice needed (about creating a TextBox like control) Pin
J4amieC16-May-06 1:33
J4amieC16-May-06 1:33 
GeneralRe: Advice needed (about creating a TextBox like control) Pin
Cristoff16-May-06 5:39
Cristoff16-May-06 5:39 
GeneralRe: Advice needed (about creating a TextBox like control) Pin
J4amieC16-May-06 9:17
J4amieC16-May-06 9:17 
Questionmigration from 2003 to 2005 and right to left main menu Pin
xshift15-May-06 22:57
xshift15-May-06 22:57 
Questioncan not start debugging on web server Pin
V.V.Thakur15-May-06 22:15
V.V.Thakur15-May-06 22:15 
AnswerRe: can not start debugging on web server Pin
VMSSanthosh15-May-06 23:33
VMSSanthosh15-May-06 23:33 
Questionlock(??) Pin
InOut.NET15-May-06 21:36
InOut.NET15-May-06 21:36 
I've got a Singleton instance of my class(A) that contains the functions for filling (passed on)datasets using 1 of 2 resident data adapters: the default adapater(A1) (for executing queries that will not be updated back to the database), and one for specially created and monitored for the query(A2) (that can be used to update data back to database). This all operates using delegates and call backs to the calling class'(B-Z) method. The database is hosted on the internet so, i need the delegation so the ui threads are not waiting for the data to return from the server.

What i'm not sure about is how the lock() will affect my program flow and what will happen when i lock the singleton instance A. At this stage i'm only locking the A1 adapter instance. I want to lock the whole instance of A so that other data requests don't interfere with the current data request.

Will it lock(A) the lock the instance in use by other classes in other threads or should i rather use a single line queue for data filling/updateing?

I would appreciate if some can enlighen me.
AnswerRe: lock(??) Pin
Guffa15-May-06 22:36
Guffa15-May-06 22:36 
GeneralRe: lock(??) Pin
InOut.NET15-May-06 22:48
InOut.NET15-May-06 22:48 
AnswerRe: lock(??) Pin
Guffa16-May-06 0:47
Guffa16-May-06 0:47 
Questionvoice chat white by c# Pin
majid.jannesari15-May-06 21:12
majid.jannesari15-May-06 21:12 
AnswerRe: voice chat white by c# Pin
Colin Angus Mackay15-May-06 21:13
Colin Angus Mackay15-May-06 21:13 
AnswerRe: voice chat white by c# Pin
mav.northwind15-May-06 21:51
mav.northwind15-May-06 21:51 
QuestionCreating calendar in c# Pin
nauty15-May-06 20:52
nauty15-May-06 20:52 
AnswerRe: Creating calendar in c# Pin
coolestCoder15-May-06 21:13
coolestCoder15-May-06 21:13 
GeneralRe: Creating calendar in c# Pin
leppie15-May-06 22:20
leppie15-May-06 22:20 
GeneralRe: Creating calendar in c# Pin
nauty16-May-06 2:18
nauty16-May-06 2:18 
GeneralRe: Creating calendar in c# Pin
coolestCoder16-May-06 3:24
coolestCoder16-May-06 3:24 
AnswerRe: Creating calendar in c# Pin
leppie15-May-06 21:14
leppie15-May-06 21:14 
AnswerRe: Creating calendar in c# Pin
papa198015-May-06 21:32
papa198015-May-06 21:32 
Questionstring to char... Pin
Prinz Ryoiji15-May-06 20:49
Prinz Ryoiji15-May-06 20:49 
AnswerRe: string to char... Pin
coolestCoder15-May-06 21:04
coolestCoder15-May-06 21:04 
AnswerRe: string to char... Pin
Guffa15-May-06 21:28
Guffa15-May-06 21:28 
QuestionProblem Sending mail from C# Pin
coolestCoder15-May-06 20:44
coolestCoder15-May-06 20:44 

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.