Click here to Skip to main content
16,008,719 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalvalidation help Pin
hassanasp20-Dec-07 1:28
hassanasp20-Dec-07 1:28 
AnswerRe: validation help Pin
Ujjaval Modi20-Dec-07 1:39
Ujjaval Modi20-Dec-07 1:39 
GeneralRe: validation help Pin
hassanasp20-Dec-07 13:06
hassanasp20-Dec-07 13:06 
GeneralRe: validation help Pin
Christian Graus20-Dec-07 14:23
protectorChristian Graus20-Dec-07 14:23 
GeneralRe: validation help Pin
Paul Conrad22-Dec-07 13:07
professionalPaul Conrad22-Dec-07 13:07 
GeneralConnecting two computers using VB.NET Pin
Benny_Lava19-Dec-07 23:58
Benny_Lava19-Dec-07 23:58 
GeneralRe: Connecting two computers using VB.NET Pin
Dave Kreskowiak20-Dec-07 7:42
mveDave Kreskowiak20-Dec-07 7:42 
QuestionHow to Control Concurency using Threads in vb.net Pin
Vimalsoft(Pty) Ltd19-Dec-07 23:17
professionalVimalsoft(Pty) Ltd19-Dec-07 23:17 
Good afternoon All

i have an Application in an Multiuser evironment, i have a Concurency Problem. i would like someone to Explain to me how to handle Concurency using thread, i would like to lock the Update Function when one of users is updating the records and unlock it when the process is done . here is an example of my code

Public Function SaveProperties_Lis(ByVal dsDAta As PropDAL.Dssearchlis) As PropDAL.Dssearchlis

Dim ws As PropDAL.Properties 
Try

ws = New PropDAL.Properties 
'check the Business Rules 

Me.CheckRules_Lis(dsDAta) 
'Updating the dataset 

dsDAta.EndInit()

ws.UpdateLis_search(dsDAta)

Catch ex As Exception 
MsgBox(ex.Message)

End Try

Return dsDAta 
End Function
.

i have this Function in BLL(Business Logic Layer). i want to lock it , when another user is using it.
The Bll is running on the Client machine and its a DLL that is deployed with the Application. i need to trap the Concurency situation in the BLL. The code above is retreaving the data from the DAL(data Access Layer), so the BLL will create an object of a DAL and use the DAL functions, and the Client application will call the BLL for service by creating an object of BLL and use the methods of BLL that will use the methods of DAL, i have not prevented Concurency to a database,and thats what i want to do. i want to know how to achieve this in a multi user Environment.

Thanks
Vuyiswa Maseko,

Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding

VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za


AnswerRe: How to Control Concurency using Threads in vb.net Pin
Dave Kreskowiak20-Dec-07 7:56
mveDave Kreskowiak20-Dec-07 7:56 
QuestionBitmap&Bitmap Pin
The real $M@19-Dec-07 22:22
The real $M@19-Dec-07 22:22 
GeneralRe: Bitmap&Bitmap Pin
Christian Graus19-Dec-07 23:26
protectorChristian Graus19-Dec-07 23:26 
GeneralRe: Bitmap&Bitmap Pin
The real $M@20-Dec-07 23:36
The real $M@20-Dec-07 23:36 
GeneralRe: Bitmap&Bitmap Pin
MikeMarq20-Dec-07 11:24
MikeMarq20-Dec-07 11:24 
GeneralRe: Bitmap&Bitmap Pin
The real $M@20-Dec-07 23:35
The real $M@20-Dec-07 23:35 
GeneralRe: Bitmap&Bitmap Pin
MikeMarq21-Dec-07 8:44
MikeMarq21-Dec-07 8:44 
AnswerRe: Bitmap&Bitmap Pin
The real $M@22-Dec-07 1:54
The real $M@22-Dec-07 1:54 
GeneralException for DB connection Pin
nishkarsh_k19-Dec-07 21:10
nishkarsh_k19-Dec-07 21:10 
GeneralRe: Exception for DB connection Pin
Christian Graus19-Dec-07 23:27
protectorChristian Graus19-Dec-07 23:27 
GeneralRe: Exception for DB connection Pin
nishkarsh_k20-Dec-07 7:59
nishkarsh_k20-Dec-07 7:59 
GeneralRe: Exception for DB connection Pin
yogesh_kumar_agarwal20-Dec-07 3:16
yogesh_kumar_agarwal20-Dec-07 3:16 
GeneralRe: Exception for DB connection Pin
nishkarsh_k20-Dec-07 8:04
nishkarsh_k20-Dec-07 8:04 
GeneralPLEASE HELP!! craxdrt.dll failed to register [modified] Pin
vbDigger'z19-Dec-07 21:10
vbDigger'z19-Dec-07 21:10 
AnswerRe: PLEASE HELP!! craxdrt.dll failed to register Pin
yogesh_kumar_agarwal20-Dec-07 3:40
yogesh_kumar_agarwal20-Dec-07 3:40 
GeneralRe: PLEASE HELP!! craxdrt.dll failed to register Pin
vbDigger'z20-Dec-07 14:32
vbDigger'z20-Dec-07 14:32 
GeneralReading CSV File and storing in dataset Pin
ejaz_pk19-Dec-07 6:18
ejaz_pk19-Dec-07 6:18 

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.